Re: [PATCH] swapfile.c

Andrey Panin (pazke@orbita1.ru)
Mon, 4 Mar 2002 14:28:24 +0300


--2fHTh5uZTiUOsy+g
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On =D0=A1=D0=B1=D1=82, =D0=9C=D0=B0=D1=80 02, 2002 at 09:25:16 +0000, Andri=
es.Brouwer@cwi.nl wrote:
> In 2.5.2 swapfile.c was broken:
> In sys_swapon() we see
>=20
> swap_file =3D filp_open(name, O_RDWR, 0);
> if (IS_ERR(swap_file))
> goto bad_swap_2;
>=20
> bad_swap_2:
> ...
> if (swap_file)
> filp_close(swap_file, NULL);
>=20
> and this oopses the kernel.

Fixed in -dj tree.

--=20
Andrey Panin | Embedded systems software engineer
pazke@orbita1.ru | PGP key: wwwkeys.eu.pgp.net
--2fHTh5uZTiUOsy+g
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8g1pYBm4rlNOo3YgRAtb+AJ0SE9fCVrlKtw9eZk5lKlqT+cieawCeN/CT
JbxjMQvcNp5AUeUryg+HFnE=
=5neu
-----END PGP SIGNATURE-----

--2fHTh5uZTiUOsy+g--
-
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/