linux/drivers/net/ethernet/ti
Grygorii Strashko c6213eb1ae net: ethernet: ti: cpsw-phy-sel: check bus_find_device() ret value
This fixes klockworks warnings: Pointer 'dev' returned from call to
function 'bus_find_device' at line 179 may be NULL and will be dereferenced
at line 181.

    cpsw-phy-sel.c:179: 'dev' is assigned the return value from function 'bus_find_device'.
    bus.c:342: 'bus_find_device' explicitly returns a NULL value.
    cpsw-phy-sel.c:181: 'dev' is dereferenced by passing argument 1 to function 'dev_get_drvdata'.
    device.h:1024: 'dev' is passed to function 'dev_get_drvdata'.
    device.h:1026: 'dev' is explicitly dereferenced.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
[nsekhar@ti.com: add an error message, fix return path]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-05-16 14:13:13 -04:00
..
Kconfig cpsw/netcp: refine cpts dependency 2017-04-28 15:55:14 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cpmac.c cpmac: remove hopeless #warning 2017-01-16 11:54:36 -05:00
cpsw-common.c net: ti: cpsw-common: dont print error if ti_cm_get_macid() fails 2017-08-30 10:05:07 -07:00
cpsw-phy-sel.c net: ethernet: ti: cpsw-phy-sel: check bus_find_device() ret value 2018-05-16 14:13:13 -04:00
cpsw.c net: ethernet: ti: cpsw: fix packet leaking in dual_mac mode 2018-05-02 11:08:23 -04:00
cpsw.h net: ethernet: ti: cpsw: move mac_hi/lo defines in cpsw.h 2017-12-01 16:36:32 -05:00
cpsw_ale.c net: ethernet: ti: ale: fix port check in cpsw_ale_control_set/get 2017-12-01 16:36:33 -05:00
cpsw_ale.h net: ethernet: ti: ale: use devm_kzalloc in cpsw_ale_create() 2017-12-01 16:36:32 -05:00
cpts.c net: ethernet: ti: Use ERR_CAST instead of ERR_PTR(PTR_ERR()) 2018-05-14 16:27:59 -04:00
cpts.h net: ethernet: ti: cpts: fix tx timestamping timeout 2017-08-01 15:22:55 -07:00
davinci_cpdma.c net: ethernet: ti: cpsw: enable vlan rx vlan offload 2018-03-17 19:51:01 -04:00
davinci_cpdma.h net: ethernet: ti: cpsw: enable vlan rx vlan offload 2018-03-17 19:51:01 -04:00
davinci_emac.c net: ethernet: ti: cpdma: correct error handling for chan create 2017-12-13 15:49:53 -05:00
davinci_mdio.c drivers: net: davinci_mdio: prevent spurious timeout 2018-05-10 16:18:59 -04:00
netcp.h net: netcp: add api to support set rx mode in netcp modules 2018-04-18 21:00:57 -04:00
netcp_core.c net: netcp: add api to support set rx mode in netcp modules 2018-04-18 21:00:57 -04:00
netcp_ethss.c net: netcp: ethss: k2g: add promiscuous mode support 2018-04-18 21:00:58 -04:00
netcp_sgmii.c
netcp_xgbepcsr.c
tlan.c net: Spelling s/stucture/structure/ 2018-03-27 09:51:23 +02:00
tlan.h