Messages in this thread | | | From | "Martin K. Petersen" <> | Subject | Re: [PATCH] scsi: aacraid: Fix some error handling paths in 'aac_probe_one()' | Date | Mon, 27 Apr 2020 18:49:49 -0400 |
| |
On Sun, 12 Apr 2020 11:40:39 +0200, Christophe JAILLET wrote:
> If 'scsi_host_alloc()' or 'kcalloc()' fail, 'error' is known to be 0. Set > it explicitly to -ENOMEM instead before branching to the error handling > path. > > While at it, axe 2 useless assignments to 'error'. These values are > overwridden a few lines later.
Applied to 5.8/scsi-queue, thanks!
[1/1] scsi: aacraid: Fix error handling paths in aac_probe_one() https://git.kernel.org/mkp/scsi/c/f7854c382240
-- Martin K. Petersen Oracle Linux Engineering
| |