]> git.baikalelectronics.ru Git - kernel.git/commit
net: netcp: check for interface handle in netcp_module_probe()
authorKaricheri, Muralidharan <m-karicheri2@ti.com>
Wed, 23 Sep 2015 17:37:09 +0000 (13:37 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Sep 2015 21:37:37 +0000 (14:37 -0700)
commitfb8070f7835ff43fa099e92dcfbc82534db5181d
tree24fde088492a71703e6ce56da55409d2afe45ef6
parent72b95e799b8c73bf51d27cdaf768e23e5e62b04a
net: netcp: check for interface handle in netcp_module_probe()

Currently netcp_module_probe() doesn't check the return value of
of_parse_phandle() that points to the interface data for the
module and then pass the node ptr to the module which is incorrect.
Check for return value and free the intf_modpriv if there is error.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_core.c