summaryrefslogtreecommitdiffstats
path: root/mount/umount.c
diff options
context:
space:
mode:
authorKarel Zak2007-04-26 01:49:28 +0200
committerKarel Zak2007-04-26 01:49:28 +0200
commitb2b7b73d5eb1ebb950ea88db929aa0f0973d9b40 (patch)
tree1c3b0ce8cf9635588218e81f6f80091ecc444003 /mount/umount.c
parentmount: fix memory usage in update_mtab (diff)
downloadkernel-qcow2-util-linux-b2b7b73d5eb1ebb950ea88db929aa0f0973d9b40.tar.gz
kernel-qcow2-util-linux-b2b7b73d5eb1ebb950ea88db929aa0f0973d9b40.tar.xz
kernel-qcow2-util-linux-b2b7b73d5eb1ebb950ea88db929aa0f0973d9b40.zip
mount: fix list logic in update_mtab
If mtab does not contain the new entry, then only mc0->prev is updated to point to absent, but not the old mc0->prev's nxt pointer. Because we then use the nxt pointers to write the new mtab, absent is not added to the new mtab. (Note: fortunately, the mount doesn't use the update_mtab() for new mounts, but for remount, move and umount only -- kzak) If mtab is empty, absent->prev should be set to mc0, and not mc0->prev, as it will be NULL. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Martin Schlemmer <azarah@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/umount.c')
0 files changed, 0 insertions, 0 deletions