diff options
| author | Bodo Stroesser <[email protected]> | 2021-04-23 15:01:23 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-04-29 02:55:00 +0000 |
| commit | 9814b55cde0588b6d9bc496cee43f87316cbc6f1 (patch) | |
| tree | 63925f04edb5d656d374c7b253011a926b56bd95 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
| parent | scsi: ufs: core: Fix a typo in ufs-sysfs.c (diff) | |
| download | kernel-9814b55cde0588b6d9bc496cee43f87316cbc6f1.tar.gz kernel-9814b55cde0588b6d9bc496cee43f87316cbc6f1.zip | |
scsi: target: tcmu: Return from tcmu_handle_completions() if cmd_id not found
If tcmu_handle_completions() finds an invalid cmd_id while looping over cmd
responses from userspace it sets TCMU_DEV_BIT_BROKEN and breaks the
loop. This means that it does further handling for the tcmu device.
Skip that handling by replacing 'break' with 'return'.
Additionally change tcmu_handle_completions() from unsigned int to bool,
since the value used in return already is bool.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bodo Stroesser <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions
