OpenCloudOS-Kernel/drivers/net/ethernet/freescale/fman
Markus Elfring 5d19c619ab fsl/fman: Delete one function call "put_device" in dtsec_config()
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>
2016-01-14 15:03:41 -05:00
..
Kconfig fsl/fman: allow modular build 2016-01-04 21:53:42 -05:00
Makefile fsl/fman: Add FMan MAC driver 2015-12-27 20:51:40 -05:00
fman.c fsl/fman: Add FMan support 2015-12-27 20:51:39 -05:00
fman.h fsl/fman: Add FMan support 2015-12-27 20:51:39 -05:00
fman_dtsec.c fsl/fman: Delete one function call "put_device" in dtsec_config() 2016-01-14 15:03:41 -05:00
fman_dtsec.h fsl/fman: Add FMan MAC support 2015-12-27 20:51:40 -05:00
fman_mac.h fsl/fman: Add FMan MAC support 2015-12-27 20:51:40 -05:00
fman_memac.c phy: Add an mdio_device structure 2016-01-07 14:31:26 -05:00
fman_memac.h fsl/fman: Add FMan MAC support 2015-12-27 20:51:40 -05:00
fman_muram.c
fman_muram.h
fman_port.c fsl/fman: Add FMan Port Support 2015-12-27 20:51:40 -05:00
fman_port.h fsl/fman: Add FMan Port Support 2015-12-27 20:51:40 -05:00
fman_sp.c fsl/fman: Add FMan SP support 2015-12-27 20:51:40 -05:00
fman_sp.h fsl/fman: Add FMan SP support 2015-12-27 20:51:40 -05:00
fman_tgec.c fsl/fman: Add FMan MAC support 2015-12-27 20:51:40 -05:00
fman_tgec.h fsl/fman: Add FMan MAC support 2015-12-27 20:51:40 -05:00
mac.c fsl/fman: double free on probe failure 2016-01-06 15:28:11 -05:00
mac.h fsl/fman: Add FMan MAC driver 2015-12-27 20:51:40 -05:00