mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: SL Baur <steve@kbuxd.necst.nec.co.jp>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] fs/namei.c fix
Date: Thu, 28 Nov 2002 12:15:33 +0900	[thread overview]
Message-ID: <15845.35413.304242.606651@sofia.bsd2.kbnes.nec.co.jp> (raw)

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);




                 reply	other threads:[~2002-11-28  3:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15845.35413.304242.606651@sofia.bsd2.kbnes.nec.co.jp \
    --to=steve@kbuxd.necst.nec.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®