linux_dsm_epyc7002/drivers/net
Florian Fainelli c823abac17 net: ep93xx_eth: Do not crash unloading module
When we unload the ep93xx_eth, whether we have opened the network
interface or not, we will either hit a kernel paging request error, or a
simple NULL pointer de-reference because:

- if ep93xx_open has been called, we have created a valid DMA mapping
  for ep->descs, when we call ep93xx_stop, we also call
  ep93xx_free_buffers, ep->descs now has a stale value

- if ep93xx_open has not been called, we have a NULL pointer for
  ep->descs, so performing any operation against that address just won't
  work

Fix this by adding a NULL pointer check for ep->descs which means that
ep93xx_free_buffers() was able to successfully tear down the descriptors
and free the DMA cookie as well.

Fixes: 1d22e05df8 ("[PATCH] Cirrus Logic ep93xx ethernet driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-05 15:35:39 -05:00
..
appletalk
arcnet
bonding Merge branch 'work.uaccess2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2016-10-11 23:38:39 -07:00
caif
can can: peak: Add support for PCAN-USB X6 USB interface 2016-12-01 14:12:20 +01:00
cris
dsa net: dsa: bcm_sf2: Ensure we re-negotiate EEE during after link change 2016-11-24 15:53:50 -05:00
ethernet net: ep93xx_eth: Do not crash unloading module 2016-12-05 15:35:39 -05:00
fddi
fjes
hamradio 6pack: fix buffer length mishandling 2016-09-20 22:51:30 -04:00
hippi
hyperv Revert "hv_netvsc: report vmbus name in ethtool" 2016-10-29 15:03:14 -04:00
ieee802154 net: ieee802154: drop duplicate header delay.h 2016-11-25 20:33:10 -05:00
ipvlan driver: ipvlan: Fix one possible memleak in ipvlan_link_new 2016-11-27 19:58:04 -05:00
irda net: irda: set error code on failures 2016-12-05 14:53:08 -05:00
phy net: phy: realtek: fix enabling of the TX-delay for RTL8211F 2016-11-28 12:06:54 -05:00
plip
ppp ppp: declare PPP devices as LLTX 2016-08-31 14:33:09 -07:00
slip
team team: loadbalance: push lacpdus to exact delivery 2016-08-26 13:08:59 -07:00
usb net: usb: set error code when usb_alloc_urb fails 2016-12-05 13:27:15 -05:00
vmxnet3 vmxnet3: avoid assumption about invalid dma_pa in vmxnet3_set_mc() 2016-10-15 17:47:32 -04:00
wan net: wan: slic_ds26522: Allow driver to built if COMPILE_TEST is enabled 2016-10-14 10:11:49 -04:00
wimax
wireless wireless-drivers fixes for 4.9 2016-11-30 14:33:44 -05:00
xen-netback xen-netback: fix type mismatch warning 2016-10-13 11:02:25 -04:00
dummy.c
eql.c
geneve.c geneve: avoid use-after-free of skb->data 2016-12-02 14:07:11 -05:00
gtp.c
ifb.c
Kconfig ipvlan: Fix dependency issue 2016-09-20 22:55:23 -04:00
LICENSE.SRC
loopback.c
macsec.c macsec: Fix header length if SCI is added if explicitly disabled 2016-10-27 16:21:00 -04:00
macvlan.c driver: macvlan: Check if need rollback multicast setting in macvlan_open 2016-11-23 20:18:36 -05:00
macvtap.c macvtap: handle ubuf refcount correctly when meet errors 2016-11-30 15:06:02 -05:00
Makefile
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tun.c tun: handle ubuf refcount correctly when meet errors 2016-11-30 15:06:01 -05:00
veth.c net: veth: Set features for MPLS 2016-08-30 22:27:18 -07:00
virtio_net.c virtio-net: add a missing synchronize_net() 2016-11-16 15:09:29 -05:00
vrf.c net: Require exact match for TCP socket lookups if dif is l3mdev 2016-10-17 10:17:05 -04:00
vxlan.c vxlan: fix a potential issue when create a new vxlan fdb entry. 2016-11-30 12:02:49 -05:00
xen-netfront.c xen-netfront: cast grant table reference first to type int 2016-11-02 15:33:36 -04:00