mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
goldfish: pipe: ANDROID: add missing check for memory allocated
Bug: 72717639 Change-Id: I9bc8db41f2269c38a259d842ea52bdc0037f3bae Signed-off-by: Roman Kiryanov <rkir@google.com>
This commit is contained in:
parent
de64e01e5a
commit
95948c923c
|
|
@ -948,7 +948,8 @@ static int goldfish_pipe_dma_alloc_locked(struct goldfish_pipe *pipe)
|
|||
dma->dma_size,
|
||||
&dma->phys_begin,
|
||||
GFP_KERNEL);
|
||||
return -ENOMEM;
|
||||
if (!dma->dma_vaddr)
|
||||
return -ENOMEM;
|
||||
|
||||
dma->phys_end = dma->phys_begin + dma->dma_size;
|
||||
pipe->dev->dma_alloc_total += dma->dma_size;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user