mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fs/namei.c fix
@ 2002-11-28  3:15 SL Baur
  0 siblings, 0 replies; only message in thread
From: SL Baur @ 2002-11-28  3:15 UTC (permalink / raw)
  To: linux-kernel

One of Greg KH's security cleanups reversed the sense of a test.
Without this patch, 2.5.50 oopses at boot.  Please apply.

===== fs/namei.c 1.59 vs edited =====
--- 1.59/fs/namei.c	Thu Nov 28 08:11:14 2002
+++ edited/fs/namei.c	Thu Nov 28 12:09:53 2002
@@ -1648,7 +1648,7 @@
 		error = -EBUSY;
 	else {
 		error = security_inode_unlink(dir, dentry);
-		if (error)
+		if (!error)
 			error = dir->i_op->unlink(dir, dentry);
 	}
 	up(&dentry->d_inode->i_sem);




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-28  3:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-28  3:15 [PATCH] fs/namei.c fix SL Baur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®