]> git.baikalelectronics.ru Git - kernel.git/commit
mv643xx_eth: Allocate receive queue initialized to zero
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 18 Jun 2013 17:32:38 +0000 (19:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jun 2013 05:18:52 +0000 (22:18 -0700)
commit59881f1394e2b2e6734468a76bf24cf3326e8042
tree7070f43ce5b1b0396938c2559820f4f7a6c34427
parent82d4255ac5cefe5fdbd69f74c00e28a947770d06
mv643xx_eth: Allocate receive queue initialized to zero

Zero pointer in rx_skb is how respective rxq_deinit() finds out out that a skb
slot is unallocated. If rxq_refill() fails (e.g. on OOM condition), subsequent
teardown would result in an attempt to kfree() invalid pointers.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Cc: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mv643xx_eth.c