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
33467f9a09
commit
6cdd987da8
1 changed files with 2 additions and 1 deletions
|
@ -951,7 +951,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…
Add table
Reference in a new issue