[PATCH] Fix oops in ufs_fill_super at mount time
authorEvgeniy <dushistov@mail.ru>
Fri, 13 Jan 2006 15:12:15 +0000 (18:12 +0300)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 13 Jan 2006 16:42:48 +0000 (08:42 -0800)
commit8a430d74fea797fc55fef1ad4c21420212b83574
tree123a53efd78abc925821065c70e0c8c3c417a888
parent43ecb9a33ba8c93ebbda81d48ca05f0d1bbf9056
[PATCH] Fix oops in ufs_fill_super at mount time

There's a lack of parenthesis in fs/ufs/utils.h, so instead of the 512th
byte of buffer, the usb2 pointer will point to the nth structure of type
ufs_super_block_second.

This can cause a mount-time oops if you're unlucky (especially with
DEBUG_PAGEALLOC, which is how Alexey Dobriyan saw this problem)

Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru>
Acked-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ufs/util.h