Re: A testcase for the umount bug + FIX

Guest section DW (dwguest@win.tue.nl)
Sun, 13 Dec 1998 01:22:07 +0100 (MET)


From: hjl@lucon.org (H.J. Lu)
Subject: A testcase for the umount bug.

Here is a testcase for the floppy umount bug:

rmdir("nosuchdir");

Hmm. That makes it rather clear what is wrong.
In do_rmdir() a dput is missing.
Something like

if (!dentry->d_inode) {
dput(dentry);
goto exit;
}

will cure this problem, I suppose.

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/