]> git.hungrycats.org Git - linux/commit
[PATCH] fix affs/super.c
authorAndries E. Brouwer <andries.brouwer@cwi.nl>
Mon, 17 Mar 2003 00:21:10 +0000 (16:21 -0800)
committerChristoph Hellwig <hch@sgi.com>
Mon, 17 Mar 2003 00:21:10 +0000 (16:21 -0800)
commite54f721e229c8218e1483775edcf602f1d12063b
tree4fde38b0ac17d24e05aff80edee1cdf7124a5416
parente22feb1817401f060b279d127ea8b80e82083fb4
[PATCH] fix affs/super.c

Mounting a non-affs filesystem as affs crashes the kernel.
The reason is the
sbi = kmalloc(sizeof(struct affs_sb_info), GFP_KERNEL);
memset(sbi, 0, sizeof(*AFFS_SB));
where the second sizeof is 1, so that sbi is not zeroed at all.

Also, avoid a warning for printk of sector_t in amigaffs.h.
fs/affs/super.c
include/linux/amigaffs.h