[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cbd9d71b-c91a-9354-96ee-e1e2c541bbc0@oracle.com>
Date: Thu, 6 Apr 2023 10:33:12 +0100
From: John Garry <john.g.garry@...cle.com>
To: Harshit Mogalapalli <harshit.m.mogalapalli@...cle.com>
Cc: error27@...il.com, kernel-janitors@...r.kernel.org,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH next] scsi: scsi_debug: Fix missing error code in
scsi_debug_init()
On 06/04/2023 08:46, Harshit Mogalapalli wrote:
> 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<harshit.m.mogalapalli@...cle.com>
> ---
thanks
Reviewed-by: John Garry <john.g.garry@...cle.com>
Powered by blists - more mailing lists