linux/drivers/net/ethernet/renesas
Sergei Shtylyov c1b7fca650 sh_eth: fix NULL pointer dereference in sh_eth_ring_format()
In a low memory situation, if netdev_alloc_skb() fails on a first RX ring
loop iteration  in sh_eth_ring_format(), 'rxdesc' is still NULL.  Avoid
kernel oops by adding the 'rxdesc' check after the loop.

Reported-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-03-10 16:06:49 -05:00
..
Kconfig sh_eth, ravb: Use ARCH_RENESAS 2016-03-03 17:09:08 -05:00
Makefile Renesas Ethernet AVB PTP clock driver 2015-06-11 00:24:12 -07:00
ravb_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-03-08 12:34:12 -05:00
ravb_ptp.c ravb: factor out register bit twiddling code 2016-02-10 05:38:12 -05:00
ravb.h ravb: factor out register bit twiddling code 2016-02-10 05:38:12 -05:00
sh_eth.c sh_eth: fix NULL pointer dereference in sh_eth_ring_format() 2016-03-10 16:06:49 -05:00
sh_eth.h sh_eth: remove EDMAC_BIG_ENDIAN 2016-01-04 16:11:11 -05:00