Re: [PATCH] swapfile.c

From: Andrey Panin (pazke@orbita1.ru)
Date: Mon Mar 04 2002 - 06:28:24 EST


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


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



This archive was generated by hypermail 2b29 : Thu Mar 07 2002 - 21:00:32 EST