diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-07-06 23:58:33 +0200 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2017-07-10 20:13:00 +0200 |
commit | 6f6e0b217a93011f8e11b9a2d5521a08fcf36990 (patch) | |
tree | b71e3e38c1c6272438190805a85a471f4f515ca7 /drivers/dma-buf/sync_debug.c | |
parent | drm/atomic: Add missing drm_atomic_state_clear to atomic_remove_fb (diff) | |
download | linux-6f6e0b217a93011f8e11b9a2d5521a08fcf36990.tar.xz linux-6f6e0b217a93011f8e11b9a2d5521a08fcf36990.zip |
drm/rockchip: fix NULL check on devm_kzalloc() return value
The right variable to check here is port, not dp.
This issue was detected using Coccinelle and the following semantic patch:
@@
expression x;
identifier fld;
@@
* x = devm_kzalloc(...);
... when != x == NULL
x->fld
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Mark Yao <mark.yao@rock-chips.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170706215833.GA25411@embeddedgus
Diffstat (limited to 'drivers/dma-buf/sync_debug.c')
0 files changed, 0 insertions, 0 deletions