diff options
author | James Bottomley <James.Bottomley@steeleye.com> | 2006-04-27 14:07:49 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-05-10 10:22:30 -0500 |
commit | 2ca48a132167f9f12efba179382979aafde0ab36 (patch) | |
tree | 4eb3bbce62ac02590d6b49e5529ff90c0253b0fd /drivers/scsi/ipr.c | |
parent | 665b44aee34e9f2c64558df4ec01d40576e45651 (diff) | |
download | blackbird-op-linux-2ca48a132167f9f12efba179382979aafde0ab36.tar.gz blackbird-op-linux-2ca48a132167f9f12efba179382979aafde0ab36.zip |
[SCSI] fix proc_scsi_write to return "length" on success with remove-single-device case
Problem spotted by: Suzuki K P <suzuki@in.ibm.com>
A zero return on success isn't correct for filesystem write functions.
They should either return negative error or the length of bytes
consumed. Add code to convert our zero on success error return to
return the length of bytes passed in.
This fixes the following:
$ echo "scsi remove-single-device 0 0 3 0" > /proc/scsi/scsi
bash: echo: write error: No such device or address"
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/ipr.c')
0 files changed, 0 insertions, 0 deletions