Messages in this thread Patch in this message | | | Date | Sun, 16 Nov 1997 12:08:48 -0500 | From | Bill Hawes <> | Subject | patch for 2.1.63 fs/namei.c |
| |
The attached patch fixes a leaked dentry in fs/namei.c. This was causing busy devices at umount time if any lookups had failed on the device.
Regards, Bill--- fs/namei.c.old Wed Nov 12 17:33:10 1997 +++ fs/namei.c Sun Nov 16 12:58:31 1997 @@ -235,9 +235,11 @@ result = ERR_PTR(-ENOMEM); if (dentry) { int error = dir->i_op->lookup(dir, dentry); - result = ERR_PTR(error); - if (!error) - result = dentry; + result = dentry; + if (error) { + dput(dentry); + result = ERR_PTR(error); + } } } up(&dir->i_sem); | |