]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: acornscsi: Fix an error handling path in acornscsi_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 30 May 2020 08:16:22 +0000 (10:16 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 10 Jun 2020 11:50:25 +0000 (07:50 -0400)
commit60c61bec2db581f1e269deff708e981ed0d511d7
treeaecd7116a83e4c3bde90d9babe0febb5e851eb7b
parentd52e996761582527bbf48ee6fcbed709e305a8dc
scsi: acornscsi: Fix an error handling path in acornscsi_probe()

'ret' is known to be 0 at this point.  Explicitly return -ENOMEM if one of
the 'ecardm_iomap()' calls fail.

Link: https://lore.kernel.org/r/20200530081622.577888-1-christophe.jaillet@wanadoo.fr
Fixes: ddea57066998 ("[ARM] rpc: acornscsi: update to new style ecard driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/arm/acornscsi.c