Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SCSI] scsi_debug: fix resp_xdwriteread() return value when running o…
…ut 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 <[email protected]> Reviewed-by: Douglas Gilbert <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Signed-off-by: James Bottomley <[email protected]>
- Loading branch information