linux_dsm_epyc7002/drivers
Arnd Bergmann 564517e804 net/macvtap: fix reference counting
The RCU usage in the original code was broken because
there are cases where we possibly sleep with rcu_read_lock
held. As a fix, change the macvtap_file_get_queue to
get a reference on the socket and the netdev instead of
taking the full rcu_read_lock.

Also, change macvtap_file_get_queue failure case to
not require a subsequent macvtap_file_put_queue, as
pointed out by Ed Swierk.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Ed Swierk <eswierk@aristanetworks.com>
Cc: Sridhar Samudrala <sri@us.ibm.com>
Acked-by: Sridhar Samudrala <sri@us.ibm.com>
Acked-by: Ed Swierk <eswierk@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-02-15 21:49:49 -08:00
..
accessibility
acpi
amba
ata
atm
auxdisplay
base
block
bluetooth Bluetooth: Fix memory leak in Marvell BT-over-SDIO driver 2010-02-03 19:08:30 -08:00
cdrom
char
clocksource
connector connector: Delete buggy notification code. 2010-02-02 15:58:48 -08:00
cpufreq
cpuidle
crypto
dca
dio
dma
edac
eisa
firewire
firmware
gpio
gpu
hid
hwmon
i2c
ide
idle
ieee1394
ieee802154
infiniband net: use netdev_mc_count and netdev_mc_empty when appropriate 2010-02-12 11:38:58 -08:00
input
isdn mISDN: positive error return should be negative in mode_hfcmulti() 2010-02-03 20:16:48 -08:00
leds
lguest
macintosh
mca
md
media net: use netdev_mc_count and netdev_mc_empty when appropriate 2010-02-12 11:38:58 -08:00
memstick
message
mfd
misc
mmc
mtd
net net/macvtap: fix reference counting 2010-02-15 21:49:49 -08:00
nubus
of
oprofile
parisc
parport
pci pci: Add SR-IOV convenience functions and macros 2010-02-12 16:56:07 -08:00
pcmcia
platform
pnp
power
pps
ps3
rapidio
regulator
rtc
s390 net: use helpers to access uc list V2 2010-01-25 13:36:10 -08:00
sbus
scsi
serial
sfi
sh
sn
spi
ssb ssb: fix interrupt assignment 2010-02-08 16:50:54 -05:00
staging net: use netdev_mc_count and netdev_mc_empty when appropriate 2010-02-12 11:38:58 -08:00
tc
telephony
thermal
uio
usb
uwb
vhost vhost-net: switch to smp barriers 2010-02-14 22:42:53 -08:00
video
virtio virtio: Add ability to detach unused buffers from vrings 2010-02-02 15:55:42 -08:00
vlynq
w1
watchdog
xen
zorro
Kconfig
Makefile