]> git.baikalelectronics.ru Git - kernel.git/commit
FS/OMFS: block number sanity check during fill_super operation
authorFabian Frederick <fabf@skynet.be>
Mon, 13 Oct 2014 22:54:01 +0000 (15:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Oct 2014 00:18:22 +0000 (02:18 +0200)
commit337964069cc0de18a34a04b39cd609f734547b2e
tree96ea1468ce3e23c2add86f986948a17d0eaad4ee
parentfdc80eeea0b856ea138e2987fc32f4bf8b034f72
FS/OMFS: block number sanity check during fill_super operation

This patch defines maximum block number to 2^31.  It also converts
bitmap_size and array_size to unsigned int in omfs_get_imap

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Suggested-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Bob Copeland <me@bobcopeland.com>
Tested-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/omfs/inode.c
fs/omfs/omfs_fs.h