From: Zhao Lei Date: Tue, 20 Jan 2015 07:11:31 +0000 (+0800) Subject: Btrfs: fix a out-of-bound access of raid_map X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~34^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e34c330d639177bbb345bf2bde16613b00cc6e6b;p=pandora-kernel.git Btrfs: fix a out-of-bound access of raid_map We add the number of stripes on target devices into bbio->num_stripes if we are under device replacement, and we just sort the raid_map of those stripes that not on the target devices, so if when we need real raid_map, we need skip the stripes on the target devices. Signed-off-by: Zhao Lei Signed-off-by: Miao Xie Signed-off-by: Chris Mason --- Reading git-diff-tree failed