summaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.c
diff options
context:
space:
mode:
authorPetr Uzel2011-09-13 11:08:46 +0200
committerKarel Zak2011-09-13 11:38:13 +0200
commit3a18db62e661fbb307ad3a53c18afabc92d3c63e (patch)
tree0f7157e3d6010166c732d47f7852e77be3523515 /term-utils/agetty.c
parentchfn: remove non-ANSI definitions [smatch scan] (diff)
downloadkernel-qcow2-util-linux-3a18db62e661fbb307ad3a53c18afabc92d3c63e.tar.gz
kernel-qcow2-util-linux-3a18db62e661fbb307ad3a53c18afabc92d3c63e.tar.xz
kernel-qcow2-util-linux-3a18db62e661fbb307ad3a53c18afabc92d3c63e.zip
lib: do not attempt to close(0) in sysfs_deinit()
If the 'open' fails we 'goto err' which runs 'sysfs_deinit()' on a 'cxt' which hasn't been fully initialised. The 'dir_fd' is still 0, so sysfs_deinit calls "close(0)". Addresses: https://bugzilla.novell.com/show_bug.cgi?id=714151 Reported-by: Diego Ercolani <diego.ercolani@gmail.com> Analysed-by: Neil Brown <nfbrown@suse.com> Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Diffstat (limited to 'term-utils/agetty.c')
0 files changed, 0 insertions, 0 deletions