Home
last modified time | relevance | path

Searched hist:"07 ac3e70" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/ethernet/sun/
H A Dsunvnet.c07ac3e70 Mon Jan 26 14:54:35 CST 2015 David L Stevens <david.stevens@oracle.com> sunvnet: free pending tx buffers before clearing ring data

This patch moves the clearing of ring data in vnet_port_free_tx_bufs to after
the freeing of pending buffers in the ring. Otherwise, this can result in
dereferencing a NULL pointer.

Reported-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David L Stevens <david.stevens@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
07ac3e70 Mon Jan 26 14:54:35 CST 2015 David L Stevens <david.stevens@oracle.com> sunvnet: free pending tx buffers before clearing ring data

This patch moves the clearing of ring data in vnet_port_free_tx_bufs to after
the freeing of pending buffers in the ring. Otherwise, this can result in
dereferencing a NULL pointer.

Reported-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David L Stevens <david.stevens@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>