diff options
| author | Harshit Mogalapalli <[email protected]> | 2023-04-06 07:46:07 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2023-04-12 01:15:00 +0000 |
| commit | b32283d75335d8263fc9f5ae16c8a196f1d8b5d5 (patch) | |
| tree | f9a428cf46deeda88e70f3ac9f9c79ccecdc802c /tools/perf/scripts/python/libxed.py | |
| parent | scsi: hisi_sas: Work around build failure in suspend function (diff) | |
| download | kernel-b32283d75335d8263fc9f5ae16c8a196f1d8b5d5.tar.gz kernel-b32283d75335d8263fc9f5ae16c8a196f1d8b5d5.zip | |
scsi: scsi_debug: Fix missing error code in scsi_debug_init()
Smatch reports: drivers/scsi/scsi_debug.c:6996
scsi_debug_init() warn: missing error code 'ret'
Although it is unlikely that KMEM_CACHE might fail, but if it does then ret
might be zero. So to fix this explicitly mark ret as "-ENOMEM" and then
goto driver_unreg.
Fixes: 1107c7b24ee3 ("scsi: scsi_debug: Dynamically allocate sdebug_queued_cmd")
Signed-off-by: Harshit Mogalapalli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions
