diff options
| author | Mike Christie <[email protected]> | 2021-11-20 16:49:17 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-11-23 03:18:54 +0000 |
| commit | eb97545d6264b341b06ba7603f52ff6c0b2af6ea (patch) | |
| tree | 59da219368dbc7870cc32080c8610c2c39678945 /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | scsi: scsi_debug: Sanity check block descriptor length in resp_mode_select() (diff) | |
| download | kernel-eb97545d6264b341b06ba7603f52ff6c0b2af6ea.tar.gz kernel-eb97545d6264b341b06ba7603f52ff6c0b2af6ea.zip | |
scsi: core: sysfs: Fix setting device state to SDEV_RUNNING
This fixes an issue added in commit 4edd8cd4e86d ("scsi: core: sysfs: Fix
hang when device state is set via sysfs") where if userspace is requesting
to set the device state to SDEV_RUNNING when the state is already
SDEV_RUNNING, we return -EINVAL instead of count. The commmit above set ret
to count for this case, when it should have set it to 0.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 4edd8cd4e86d ("scsi: core: sysfs: Fix hang when device state is set via sysfs")
Reviewed-by: Lee Duncan <[email protected]>
Signed-off-by: Mike Christie <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions
