summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorNeil Horman <nhorman@tuxdriver.com>2007-04-20 09:54:58 -0400
committerJeff Garzik <jeff@garzik.org>2007-04-24 12:43:07 -0400
commitb748d9e3b80dc7e6ce6bf7399f57964b99a4104c (patch)
tree887909e1f735bb444ef0e3e370f34401fa6eee02 /ipc
parentd91c088b39e3c66d309938de858775bb90fd1ead (diff)
downloadlinux-stable-b748d9e3b80dc7e6ce6bf7399f57964b99a4104c.tar.gz
linux-stable-b748d9e3b80dc7e6ce6bf7399f57964b99a4104c.tar.bz2
linux-stable-b748d9e3b80dc7e6ce6bf7399f57964b99a4104c.zip
sis900: Allocate rx replacement buffer before rx operation
The sis900 driver appears to have a bug in which the receive routine passes the skbuff holding the received frame to the network stack before refilling the buffer in the rx ring. If a new skbuff cannot be allocated, the driver simply leaves a hole in the rx ring, which causes the driver to stop receiving frames and become non-recoverable without an rmmod/insmod according to reporters. This patch reverses that order, attempting to allocate a replacement buffer first, and receiving the new frame only if one can be allocated. If no skbuff can be allocated, the current skbuf in the rx ring is recycled, dropping the current frame, but keeping the NIC operational. Signed-off-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions