commit | e558b1fbf5f43da83f91a31e595a6d65e663b100 | [log] [tgz] |
---|---|---|
author | Karicheri, Muralidharan <m-karicheri2@ti.com> | Wed Sep 23 13:37:08 2015 -0400 |
committer | David S. Miller <davem@davemloft.net> | Wed Sep 23 14:37:37 2015 -0700 |
tree | 8bc401661d3acf3cf3ddd1d3afc74975d58e713d | |
parent | 736532a0705ffc27c14f712fa2758a7f8b15e8b4 [diff] |
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>