]> git.itanic.dy.fi Git - linux-stable/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)
commitdcf54e6cae9e556855ba754e6b31db05d34b9c70
treeffa59b27c296054668fd20b45a7ff9a56173f0e4
parentc72d97146fc5a4dff381b1737f6167e89860430d
parisc: ccio-dma: Handle kmalloc failure in ccio_init_resources()

[ Upstream commit d46c742f827fa2326ab1f4faa1cccadb56912341 ]

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