]> git.baikalelectronics.ru Git - kernel.git/commit
net: netcp: ethss: fix up incorrect use of list api
authorKaricheri, Muralidharan <m-karicheri2@ti.com>
Tue, 28 Jul 2015 22:20:13 +0000 (18:20 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2015 01:37:40 +0000 (18:37 -0700)
commit5d3a5e48929c288340ebb8a34277f06ac8d3dcd0
tree2ac8fd5f33a732848b76747959de9b33af3db7ad
parent55ef1708688ba4ce00db1b55bf7af1828571b80c
net: netcp: ethss: fix up incorrect use of list api

The code seems to assume a null is returned when the list is empty
from first_sec_slave() to break the loop which is incorrect. Fix the
code by using list_empty().

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