summaryrefslogtreecommitdiffstats
path: root/drivers/accessibility
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2014-02-26 14:57:01 +0100
committerJames Bottomley <JBottomley@Parallels.com>2014-03-19 20:15:03 +0100
commitc5af0db96b7c219245f4985314e11c7e716e82ae (patch)
treebe49e665ebc69510453172300f112503905c56ad /drivers/accessibility
parent[SCSI] scsi_debug: fix duplicate dif_errors increment (diff)
downloadlinux-c5af0db96b7c219245f4985314e11c7e716e82ae.tar.xz
linux-c5af0db96b7c219245f4985314e11c7e716e82ae.zip
[SCSI] scsi_debug: fix resp_xdwriteread() return value when running out of memory
When resp_xdwriteread() can't allocate temporary buffer, it returns -1. But the return value is used as scsi status code and -1 is not interpreted as correct code. target_core_mod has similar xdwriteread emulation code. So this mimics what target_core_mod does for xdwriteread when running out of memory. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Reviewed-by: Douglas Gilbert <dgilbert@interlog.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/accessibility')
0 files changed, 0 insertions, 0 deletions