]> 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)
commit4d58b85f182e4f22fd52c457cefe1ce6a670e47f
treeaecd7116a83e4c3bde90d9babe0febb5e851eb7b
parentd8bc848a8a67b6246d1d8bfb081e23d4c04dab4e
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