]> 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)
committerHelge Deller <deller@gmx.de>
Mon, 22 Aug 2022 09:09:17 +0000 (11:09 +0200)
commitd46c742f827fa2326ab1f4faa1cccadb56912341
tree7258b655f7ed2a9670ba19d20e4fb0b7d244d7f4
parent4cb2643667c26fc976a4941b92f3770da9ec06a0
parisc: ccio-dma: Handle kmalloc failure in ccio_init_resources()

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>
drivers/parisc/ccio-dma.c