From: Li Haifeng Date: Wed, 10 Dec 2014 23:44:47 +0000 (-0800) Subject: mm/frontswap.c: fix the condition in BUG_ON X-Git-Tag: omap-for-v3.20/drop-legacy-3517~139^2~113 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1ad28973d3d9fe23fa73fbb66fba077a987dd81;p=pandora-kernel.git mm/frontswap.c: fix the condition in BUG_ON The largest index of swap device is MAX_SWAPFILES-1. So the type should be less than MAX_SWAPFILES. Signed-off-by: Haifeng Li Acked-by: Konrad Rzeszutek Wilk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed