ore: Fix crash in case of an IO error.
authorBoaz Harrosh <bharrosh@panasas.com>
Tue, 27 Dec 2011 17:23:36 +0000 (19:23 +0200)
committerBoaz Harrosh <bharrosh@panasas.com>
Fri, 6 Jan 2012 14:49:06 +0000 (16:49 +0200)
commitffefb8eaa367e8a5c14f779233d9da1fbc23d164
tree6be1540656853d64a762625386d515b12e363dd4
parent831c2dc5f47c1dc79c32229d75065ada1dcc66e1
ore: Fix crash in case of an IO error.

The users of ore_check_io() expect the reported device
(In case of error) to be indexed relative to the passed-in
ore_components table, and not the logical dev index.

This causes a crash inside objlayoutdriver in case of
an IO error.

[Bug in 3.2.0 Kernel]
CC: Stable Tree <stable@kernel.org>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
fs/exofs/ore.c