summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/xmon/xmon.c
diff options
context:
space:
mode:
authorMirko Lindner <mlindner@marvell.com>2014-11-26 15:13:38 +0100
committerDavid S. Miller <davem@davemloft.net>2014-11-26 21:16:40 +0100
commit799d2fff1858004526ad75d66a5dd8a5cce6ad40 (patch)
treeb3317050cc122aa49dd3b65bcac47dfd1c9969d1 /arch/powerpc/xmon/xmon.c
parentipvlan: fix sparse warnings (diff)
downloadlinux-799d2fff1858004526ad75d66a5dd8a5cce6ad40.tar.xz
linux-799d2fff1858004526ad75d66a5dd8a5cce6ad40.zip
sky2: Fix crash inside sky2_rx_clean
If sky2->tx_le = pci_alloc_consistent() or sky2->tx_ring = kcalloc() in sky2_alloc_buffers() fails, sky2->rx_ring = kcalloc() will never be called. In this error case handling, sky2_rx_clean() is called from within sky2_free_buffers(). In sky2_rx_clean() we find the following: ... memset(sky2->rx_le, 0, RX_LE_BYTES); ... This results in a memset using a NULL pointer and will crash the system. Signed-off-by: Mirko Lindner <mlindner@marvell.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/powerpc/xmon/xmon.c')
0 files changed, 0 insertions, 0 deletions