Whamcloud - gitweb
LU-5324 lfsck: invalidly memory access in lfsck_del_target
authorFan Yong <fan.yong@intel.com>
Tue, 3 Jun 2014 18:33:08 +0000 (02:33 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 14 Jul 2014 17:05:34 +0000 (13:05 -0400)
commitd0ba1093852ec25c04c7254d8a1e184a4b024294
tree0ab9f7e9c4654cbeab8240a69290757670ca14d6
parent2c1970454c1820a22775b773d64bb280fc5586d5
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