summaryrefslogtreecommitdiffstats
path: root/tools/time
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2018-05-15 18:37:25 -0500
committerDavid S. Miller <davem@davemloft.net>2018-05-16 14:13:13 -0400
commitc6213eb1aee308e67377fd1890d84f7284caf531 (patch)
tree59a82ba5de510cff777d8a523d4c4bbd3588053a /tools/time
parentb3c898e20b1881b0876c3e811c58b039b37dd5fd (diff)
downloadlinux-c6213eb1aee308e67377fd1890d84f7284caf531.tar.bz2
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>
Diffstat (limited to 'tools/time')
0 files changed, 0 insertions, 0 deletions