Skip to content
Commit 4b9a90c0 authored by Daniel Kurtz's avatar Daniel Kurtz Committed by Mark Yao
Browse files

drm/rockchip: fix dma_alloc_attrs() error check



dma_alloc_attrs() returns NULL if it cannot allocate a dma buffer (or
mapping), not a negative error code.

Rerported-by: default avatarPawel Osciak <posciak@chromium.org>
Signed-off-by: default avatarDaniel Kurtz <djkurtz@chromium.org>
Signed-off-by: default avatarMark Yao <mark.yao@rock-chips.com>
parent c93546a5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment