Whamcloud - gitweb
LU-5324 lfsck: invalidly memory access in lfsck_del_target 60/11060/3
authorFan Yong <fan.yong@intel.com>
Tue, 3 Jun 2014 18:33:08 +0000 (02:33 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 11 Jul 2014 17:30:47 +0000 (17:30 +0000)
commite0050ae99783e8c187edb198c025281008964a83
tree31251a5d8b263373af073c6f0b1fb5a849033644
parent0ae652a50efcde81d4bbdc21433cf3ceeb7f80d9
LU-5324 lfsck: invalidly memory access in lfsck_del_target

In lfsck_del_target(), if the given index exceeds the LFSCK targets
bitmap size, then reset the local variable @ltd to avoid to access
non-related memory unexpectedly.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ia06c24632352667cb452108ba094adea56ce5518
Reviewed-on: http://review.whamcloud.com/11060
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Tested-by: Jenkins
Reviewed-by: frank zago <fzago@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lfsck/lfsck_lib.c