commit | 063d006fa06fbf73fab370921120380333a33e85 | [log] [tgz] |
---|---|---|
author | Eric Sandeen <sandeen@redhat.com> | Thu Jan 31 00:55:01 2013 +0000 |
committer | Josef Bacik <jbacik@fusionio.com> | Wed Feb 20 12:59:26 2013 -0500 |
tree | 5a6650052c7409fc8895762fcc7ef8015e5088b8 | |
parent | 1971e917c8c99ff190264305803fbafcbbac1422 [diff] |
btrfs: ensure we don't overrun devices_info[] in __btrfs_alloc_chunk WARN_ON isn't enough, we need to stop the loop if for any reason we would overrun the devices_info array. I tried to track down the connection between the length of the alloc_devices list and the rw_devices counter but it wasn't immediately obvious, so be defensive about it. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>