[PATCH] fix for initrd panic in 2.4.5

From: James Bottomley (James.Bottomley@SteelEye.com)
Date: Tue Jun 05 2001 - 23:08:21 EST


Not many people have seen this, but the i_bdev field in fake_inode in
ioctl_by_bdev() is uninitialised. Since this field is dereferenced by
BLKFLSBUF in rd_ioctl, it can lead to a panic (depending on what happens to be
on the stack). The attached fixes the problem and clears all the fields in
fake_inode to make any other problems like this show up.

James Bottomley



-
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 Jun 07 2001 - 21:00:44 EST