OSDN Git Service

ata: pata_ep93xx: fix error return code in probe
authorNikita Shubin <nikita.shubin@maquefel.me>
Wed, 23 Aug 2023 09:47:27 +0000 (12:47 +0300)
committerDamien Le Moal <dlemoal@kernel.org>
Fri, 25 Aug 2023 13:09:08 +0000 (22:09 +0900)
commit41203f93e2be757c0c8a8dd050938261ce49ab7c
tree6b0ad6ae6e7d34ff2c61b9f8b839db675e96b78a
parent8566572bf3b4d6e416a4bf2110dbb4817d11ba59
ata: pata_ep93xx: fix error return code in probe

Return -ENOMEM from ep93xx_pata_probe() if devm_kzalloc() or
ata_host_alloc() fails.

Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
drivers/ata/pata_ep93xx.c