]> git.baikalelectronics.ru Git - kernel.git/commit
net: netcp: add error check to netcp_allocate_rx_buf()
authorKaricheri, Muralidharan <m-karicheri2@ti.com>
Wed, 23 Sep 2015 17:37:08 +0000 (13:37 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Sep 2015 21:37:37 +0000 (14:37 -0700)
commit54af3d480ec5d388e93c98f871ce58c500f133f0
tree8bc401661d3acf3cf3ddd1d3afc74975d58e713d
parenta8fecdc65050c6fa0c42067d87b84110cf370a40
net: netcp: add error check to netcp_allocate_rx_buf()

Currently, if netcp_allocate_rx_buf() fails due no descriptors
in the rx free descriptor queue, inside the netcp_rxpool_refill() function
the iterative loop to fill buffers doesn't terminate right away. So modify
the netcp_allocate_rx_buf() to return an error code and use it break the
loop when 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