diff options
author | Karicheri, Muralidharan <m-karicheri2@ti.com> | 2015-09-23 19:37:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-23 23:37:37 +0200 |
commit | e558b1fbf5f43da83f91a31e595a6d65e663b100 (patch) | |
tree | 8bc401661d3acf3cf3ddd1d3afc74975d58e713d /block | |
parent | net: netcp: move netcp_register_interface() to after attach module (diff) | |
download | linux-e558b1fbf5f43da83f91a31e595a6d65e663b100.tar.xz linux-e558b1fbf5f43da83f91a31e595a6d65e663b100.zip |
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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions