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:39:45 +0000 (12:39 +0200)
commitd38fb2984cea8b5c35d9869953b514966bd98ed5
tree29caa5c7a7b63c0ae14a4fb9633b15dedbc405de
parentb878da58df2c40b08914d3960e2224040fd1fbfe
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