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)
commit3b524a683af8991b4eab4182b947c65f0ce1421b
tree3a91b1a2f2c3b192a8f4b1c806a896c33404d810
parent2ecf8e0ae28cb22d434e628c351c6193fd75fafa
sg: fix read() error reporting

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
This page took 0.023839 seconds and 5 git commands to generate.