summaryrefslogtreecommitdiffstats
path: root/libmount/src/tab_update.c
diff options
context:
space:
mode:
authorKarel Zak2011-09-12 15:33:04 +0200
committerKarel Zak2011-09-12 15:33:04 +0200
commit8726371fb8e54ca473df3369a6c4692b7588807c (patch)
treeed97345260b38492d91b565e6162e1cb1b40ac2b /libmount/src/tab_update.c
parentlibmount: redundant null check on calling free() [smatch scan] (diff)
downloadkernel-qcow2-util-linux-8726371fb8e54ca473df3369a6c4692b7588807c.tar.gz
kernel-qcow2-util-linux-8726371fb8e54ca473df3369a6c4692b7588807c.tar.xz
kernel-qcow2-util-linux-8726371fb8e54ca473df3369a6c4692b7588807c.zip
libmount: variable dereferenced before check [smatch scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/tab_update.c')
-rw-r--r--libmount/src/tab_update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/tab_update.c b/libmount/src/tab_update.c
index 3d2bd00e9..f049e42c0 100644
--- a/libmount/src/tab_update.c
+++ b/libmount/src/tab_update.c
@@ -718,7 +718,7 @@ int mnt_update_table(struct libmnt_update *upd, struct libmnt_lock *lc)
assert(upd);
- if (!upd->filename || !upd)
+ if (!upd || !upd->filename)
return -EINVAL;
if (!upd->ready)
return 0;