mirror of https://gitee.com/openkylin/linux.git
fbed20280d
There is a potential execution path in which function
of_find_compatible_node() returns NULL. In such a case,
we end up having a NULL pointer dereference when accessing
pointer *nfc_np* in function of_clk_get().
So, we better don't take any chances and fix this by null
checking pointer *nfc_np* before calling of_clk_get().
Addresses-Coverity-ID: 1473052 ("Dereference null return value")
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
nand-controller.c | ||
pmecc.c | ||
pmecc.h |