5d19c619ab
The Coccinelle semantic patch script "deref_null.cocci" pointed a problem out in the implementation of the function "dtsec_config". A null pointer was assigned to the data structure member "tbiphy" of the variable "dtsec" if a matching device was not found. A call of the function "put_device" was unnecessary then because a previous call of the function "get_device" was not triggered. Thus remove the function call "put_device" after the printing of the desired error message. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
fman_dtsec.c | ||
fman_dtsec.h | ||
fman_mac.h | ||
fman_memac.c | ||
fman_memac.h | ||
fman_muram.c | ||
fman_muram.h | ||
fman_port.c | ||
fman_port.h | ||
fman_sp.c | ||
fman_sp.h | ||
fman_tgec.c | ||
fman_tgec.h | ||
fman.c | ||
fman.h | ||
Kconfig | ||
mac.c | ||
mac.h | ||
Makefile |