]> git.baikalelectronics.ru Git - kernel.git/commit
e100: Fix broken cbs accounting due to missing memset.
authorRoger Oksanen <roger.oksanen@cs.helsinki.fi>
Sat, 19 Dec 2009 04:18:21 +0000 (20:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Dec 2009 04:18:21 +0000 (20:18 -0800)
commitb9a76b13fcf80804f0cc29898e6fed5dd3ca2316
tree2775b4662f5ed3e400d807c5304ad2063a59eebe
parent6dee005f629d517d5089a720dc2095024de82271
e100: Fix broken cbs accounting due to missing memset.

Alan Stern noticed that e100 caused slab corruption.
commit ac495cde63981b97386d586257e721545bc10b11 changed
the allocation of cbs to use dma pools that don't return zeroed memory,
especially the cb->status field used to track which cb to clean, causing
(the visible) double freeing of skbs and a wrong free cbs count.

Now the cbs are explicitly zeroed at allocation time.

Reported-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Roger Oksanen <roger.oksanen@cs.helsinki.fi>
Acked-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e100.c