From: Dan Carpenter Date: Wed, 10 Dec 2014 23:41:37 +0000 (-0800) Subject: ocfs2: fix an off-by-one BUG_ON() statement X-Git-Tag: omap-for-v3.19/fixes-rc1~142^2~180 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=519a286175b6422e13694ebb73aefee0b5749443;p=pandora-kernel.git 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 Cc: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed