]> git.baikalelectronics.ru Git - kernel.git/commit
mm/frontswap.c: fix the condition in BUG_ON
authorLi Haifeng <omycle@gmail.com>
Wed, 10 Dec 2014 23:44:47 +0000 (15:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:08 +0000 (17:41 -0800)
commit3c3d6fb0e382a21fe4b45305a8de08711e13801d
tree53bae97999593fcd65ff02132646477d0ad41dde
parentbfaac7585e3733dafcf60984dc1a6aeef91087e5
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 <omycle@gmail.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/frontswap.c