]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: ccio-dma: Handle kmalloc failure in ccio_init_resources()
authorLi Qiong <liqiong@nfschina.com>
Fri, 19 Aug 2022 04:15:10 +0000 (12:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 10:04:53 +0000 (12:04 +0200)
commite912fcbc9f5b73ea0b735d17d5ca820232c64674
treeffa59b27c296054668fd20b45a7ff9a56173f0e4
parentab4c952255df915809266c5cc69020794790db80
parisc: ccio-dma: Handle kmalloc failure in ccio_init_resources()

[ Upstream commit 50660f0e1baeab19e8f8757ada24e8175d0c3c9d ]

As the possible failure of the kmalloc(), it should be better
to fix this error path, check and return '-ENOMEM' error code.

Signed-off-by: Li Qiong <liqiong@nfschina.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/parisc/ccio-dma.c