Searched hist:"519 a286175b6422e13694ebb73aefee0b5749443" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/ocfs2/ |
H A D | slot_map.c | diff 519a286175b6422e13694ebb73aefee0b5749443 Wed Dec 10 17:41:37 CST 2014 Dan Carpenter <dan.carpenter@oracle.com> ocfs2: fix an off-by-one BUG_ON() statement
The ->si_slots[] array is allocated in ocfs2_init_slot_info() it has "->max_slots" number of elements so this test should be >= instead of >.
Static checker work. Compile tested only.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: Mark Fasheh <mfasheh@suse.com> Cc: Joel Becker <jlbec@evilplan.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|