diff options
author | Akinobu Mita <[email protected]> | 2014-02-26 22:57:01 +0900 |
---|---|---|
committer | James Bottomley <[email protected]> | 2014-03-19 12:15:03 -0700 |
commit | c5af0db96b7c219245f4985314e11c7e716e82ae (patch) | |
tree | be49e665ebc69510453172300f112503905c56ad /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | c613d061ce01be1f4e195f4666d4a99e5284cb5d (diff) |
[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 <[email protected]>
Reviewed-by: Douglas Gilbert <[email protected]>
Reviewed-by: Martin K. Petersen <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions