sg: fix read() error reporting
authorTony Battersby <tonyb@cybernetics.com>
Wed, 11 Feb 2015 16:32:06 +0000 (11:32 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 15 Feb 2015 18:36:55 +0000 (10:36 -0800)
Fix SCSI generic read() incorrectly returning success after detecting an
error.

Cc: <stable@vger.kernel.org>
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/sg.c

Simple merge