aboutsummaryrefslogtreecommitdiffstats
path: root/dmi.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2017-04-04 06:39:31 -0700
committerAndi Kleen <ak@linux.intel.com>2017-04-04 06:39:31 -0700
commit4765775e435a20c3c00a03273e347bdceb85db46 (patch)
treee09d919fadb610d76ce4fff498f84ddda043e42b /dmi.c
parentc18c8048f226244afbf73b85836967cae5cb7f99 (diff)
downloadmcelog-4765775e435a20c3c00a03273e347bdceb85db46.tar.gz
Add coverity fixes
Fix a number of (mostly harmless) issues pointed out by coverity. - Fix two resource leaks in DMI parsing - Avoid using negative fd temporarily - Annotate some code to be clear to the static analyzer Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'dmi.c')
-rw-r--r--dmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dmi.c b/dmi.c
index 35dbc36..cea35c6 100644
--- a/dmi.c
+++ b/dmi.c
@@ -322,7 +322,7 @@ legacy:
if (p >= q) {
Eprintf("Cannot find SMBIOS DMI tables");
- goto out;
+ goto out_mmap;
}
a = p;