summaryrefslogtreecommitdiffstats
path: root/lib/mangle.c
diff options
context:
space:
mode:
authorCong Wang2012-06-20 10:32:00 +0200
committerKarel Zak2012-06-21 08:21:23 +0200
commitcffee0de0cf7c0d44323a830beb313d5ae18247d (patch)
treec5e52c83a05cd8b4dd7aba9e2deed31e9a12eb7a /lib/mangle.c
parentfdisk: add some debug messages (diff)
downloadkernel-qcow2-util-linux-cffee0de0cf7c0d44323a830beb313d5ae18247d.tar.gz
kernel-qcow2-util-linux-cffee0de0cf7c0d44323a830beb313d5ae18247d.tar.xz
kernel-qcow2-util-linux-cffee0de0cf7c0d44323a830beb313d5ae18247d.zip
lib/sysfs: check if cxt->dir_path is NULL in sysfs_readlink()
cxt->dir_path could be NULL, for example, when sysfs_init() fails, check this before calling readlink()/readlink_at(). Cc: Karel Zak <kzak@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Diffstat (limited to 'lib/mangle.c')
0 files changed, 0 insertions, 0 deletions