]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: cxlflash: Fix an error handling path in 'cxlflash_disk_attach()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 15 Aug 2017 20:18:14 +0000 (22:18 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:28:54 +0000 (22:28 -0400)
commit5fa12508acf9f514b9fd36f7c5681d84972eb040
tree96351f472c13f733bf6313478ee897fdd42a0d6b
parented72cb444bc04587a1d5120cf71d555f1b89b801
scsi: cxlflash: Fix an error handling path in 'cxlflash_disk_attach()'

'rc' is known to be 0 at this point.  If 'create_context()' fails,
returns -ENOMEM instead of 0 which means success.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxlflash/superpipe.c