]> git.baikalelectronics.ru Git - kernel.git/commit
mwl8k: fix NULL pointer dereference on receive out-of-memory
authorLennert Buytenhek <buytenh@wantstofly.org>
Mon, 3 Aug 2009 19:58:26 +0000 (21:58 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 7 Aug 2009 17:09:29 +0000 (13:09 -0400)
commitc69e3d9752940c0e37b360b36c0774b066c76acc
tree1224be30813c2af7b0449d1046f2e12c91b16f41
parent91d86fa7dc091e0a7fecb1c803e368f94fc3b456
mwl8k: fix NULL pointer dereference on receive out-of-memory

When we go into out-of-memory and fail to allocate skbuffs to
refill the receive ring with, rxq_process can end up running into
a receive ring entry that is marked as host-owned but doesn't have
an associated skbuff.  If this happens, we must break out of the
rx processing loop instead of trying to process the descriptor.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Acked-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c