summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/genet/bcmgenet.c
diff options
context:
space:
mode:
authorFlorian Fainelli2014-09-08 20:37:51 +0200
committerDavid S. Miller2014-09-09 01:02:49 +0200
commitfe24ba082b8483c81f546d24e40a55624295b85d (patch)
tree8beda3a9ad3031dac7a4d85e07950e3b9df8fc9a /drivers/net/ethernet/broadcom/genet/bcmgenet.c
parentnet/mlx4_en: do not ignore autoneg in mlx4_en_set_pauseparam() (diff)
downloadkernel-qcow2-linux-fe24ba082b8483c81f546d24e40a55624295b85d.tar.gz
kernel-qcow2-linux-fe24ba082b8483c81f546d24e40a55624295b85d.tar.xz
kernel-qcow2-linux-fe24ba082b8483c81f546d24e40a55624295b85d.zip
net: systemport: check harder for out of memory conditions
There is a potential case where we might be failing to refill a control block, leaving it with both a NULL skb pointer *and* a NULL dma_unmap_addr. The way we process incoming packets, by first calling dma_unmap_single(), and then only checking for a potential NULL skb can lead to situations where do pass a NULL dma_unmap_addr() to dma_unmap_single(), resulting in an oops. Fix this my moving the NULL skb check earlier, since no backing skb also means no corresponding DMA mapping for this packet. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/genet/bcmgenet.c')
0 files changed, 0 insertions, 0 deletions