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
Change-Id: Iba535170f6ba6e8b6e3f53e898a79957e753229c
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
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| arm | ||
| drm | ||
| host1x | ||
| ipu-v3 | ||
| rogue | ||
| rogue_m | ||
| vga | ||
| Makefile | ||