public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrey Panin <pazke@orbita1.ru>
To: Andries.Brouwer@cwi.nl
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] swapfile.c
Date: Mon, 4 Mar 2002 14:28:24 +0300	[thread overview]
Message-ID: <20020304112824.GA279@pazke.ipt> (raw)
In-Reply-To: <UTC200203022125.VAA144817.aeb@cwi.nl>
In-Reply-To: <UTC200203022125.VAA144817.aeb@cwi.nl>

[-- Attachment #1: Type: text/plain, Size: 494 bytes --]

On Сбт, Мар 02, 2002 at 09:25:16 +0000, Andries.Brouwer@cwi.nl wrote:
> In 2.5.2 swapfile.c was broken:
> In sys_swapon() we see
> 
> 	swap_file = filp_open(name, O_RDWR, 0);
> 	if (IS_ERR(swap_file))
> 		goto bad_swap_2;
> 
> bad_swap_2:
> 	...
> 	if (swap_file)
> 		filp_close(swap_file, NULL);
> 
> and this oopses the kernel.

Fixed in -dj tree.

-- 
Andrey Panin            | Embedded systems software engineer
pazke@orbita1.ru        | PGP key: wwwkeys.eu.pgp.net

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  reply	other threads:[~2002-03-04 11:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-02 21:25 [PATCH] swapfile.c Andries.Brouwer
2002-03-04 11:28 ` Andrey Panin [this message]
2002-03-04 18:48   ` Robert Love
2002-03-04 19:14     ` Dave Jones
  -- strict thread matches above, loose matches on Subject: below --
2001-06-20  0:24 [Patch] swapfile.c Nathan D. Fabian
2001-06-20 15:16 ` Nathan D. Fabian

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=20020304112824.GA279@pazke.ipt \
    --to=pazke@orbita1.ru \
    --cc=Andries.Brouwer@cwi.nl \
    --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