staging: lustre: lov: avoid infinite loop in lsm_alloc_plain()
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 10 Nov 2016 17:30:37 +0000 (12:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Nov 2016 14:54:02 +0000 (15:54 +0100)
commitcf9da270497118cf14437bf56449bde7950780d9
tree06d17c5ebb81cc71c0f3df3dd546a465e9041049
parente273d54380c59eabd4e4009fcf74d070878a080b
staging: lustre: lov: avoid infinite loop in lsm_alloc_plain()

In lsm_alloc_plain() use a signed loop index to avoid an infinite loop
in the error path.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6872
Reviewed-on: http://review.whamcloud.com/15644
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lov/lov_ea.c