summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2021-11-20 10:49:17 -0600
committerMartin K. Petersen <martin.petersen@oracle.com>2021-11-22 22:18:54 -0500
commiteb97545d6264b341b06ba7603f52ff6c0b2af6ea (patch)
tree59da219368dbc7870cc32080c8610c2c39678945 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parente0a2c28da11e2c2b963fc01d50acbf03045ac732 (diff)
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/20211120164917.4924-1-michael.christie@oracle.com Fixes: 4edd8cd4e86d ("scsi: core: sysfs: Fix hang when device state is set via sysfs") Reviewed-by: Lee Duncan <lduncan@suse.com> Signed-off-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions