ore: Fix crash in case of an IO error.
commit688485273b3173d2fdb590ff916b55c581da6ed0
authorBoaz Harrosh <bharrosh@panasas.com>
Tue, 27 Dec 2011 17:23:36 +0000 (27 19:23 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jan 2012 19:29:27 +0000 (12 11:29 -0800)
tree5b8538da4e38fd8bce7a23ba72ee5688a9e35bb7
parent923415295307845e614589c1cce62abedd4d1731
ore: Fix crash in case of an IO error.

commit ffefb8eaa367e8a5c14f779233d9da1fbc23d164 upstream.

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.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/exofs/ore.c