[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <168187437337.702980.15149771115917556403.b4-ty@oracle.com>
Date: Tue, 18 Apr 2023 23:20:13 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Harshit Mogalapalli <harshit.m.mogalapalli@...cle.com>
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
error27@...il.com, kernel-janitors@...r.kernel.org,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
John Garry <john.g.garry@...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 Thu, 06 Apr 2023 00:46:07 -0700, 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.
>
> [...]
Applied to 6.4/scsi-queue, thanks!
[1/1] scsi: scsi_debug: Fix missing error code in scsi_debug_init()
https://git.kernel.org/mkp/scsi/c/b32283d75335
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists