diff options
author | Andi Kleen <ak@linux.intel.com> | 2017-04-04 06:39:31 -0700 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2017-04-04 06:39:31 -0700 |
commit | 4765775e435a20c3c00a03273e347bdceb85db46 (patch) | |
tree | e09d919fadb610d76ce4fff498f84ddda043e42b /dmi.c | |
parent | c18c8048f226244afbf73b85836967cae5cb7f99 (diff) | |
download | mcelog-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -322,7 +322,7 @@ legacy: if (p >= q) { Eprintf("Cannot find SMBIOS DMI tables"); - goto out; + goto out_mmap; } a = p; |