hexin
89a4dab0f9
vfio_pci: Restore original state on release
...
[ Upstream commit 92c8026854c25093946e0d7fe536fd9eac440f06 ]
vfio_pci_enable() saves the device's initial configuration information
with the intent that it is restored in vfio_pci_disable(). However,
the commit referenced in Fixes: below replaced the call to
__pci_reset_function_locked(), which is not wrapped in a state save
and restore, with pci_try_reset_function(), which overwrites the
restored device state with the current state before applying it to the
device. Reinstate use of __pci_reset_function_locked() to return to
the desired behavior.
Fixes: 890ed578df ("vfio-pci: Use pci "try" reset interface")
Signed-off-by: hexin <hexin15@baidu.com>
Signed-off-by: Liu Qi <liuqi16@baidu.com>
Signed-off-by: Zhang Yu <zhangyu31@baidu.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-07 18:53:12 +02:00
..
accessibility
acpi
ACPI / PCI: fix acpi_pci_irq_enable() memory leak
2019-10-05 12:30:26 +02:00
amba
android
coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping
2019-08-06 18:29:41 +02:00
ata
libata: add SG safety checks in SFF pio transfers
2019-09-06 10:19:35 +02:00
atm
Kconfig: Fix the reference to the IDT77105 Phy driver in the description of ATM_NICSTAR_USE_IDT77105
2019-09-21 07:14:13 +02:00
auxdisplay
base
base: soc: Export soc_device_register/unregister APIs
2019-10-05 12:30:20 +02:00
bcma
block
floppy: fix usercopy direction
2019-09-21 07:14:22 +02:00
bluetooth
Bluetooth: btrtl: Additional Realtek 8822CE Bluetooth devices
2019-10-05 12:30:12 +02:00
bus
bus: arm-cci: remove unnecessary unreachable()
2018-12-05 19:42:41 +01:00
cdrom
cdrom: Fix race condition in cdrom_sysctl_register
2019-04-05 22:29:12 +02:00
char
ipmi_si: Only schedule continuously in the thread in maintenance mode
2019-10-07 18:53:10 +02:00
clk
clk: sirf: Don't reference clk_init_data after registration
2019-10-07 18:53:10 +02:00
clocksource
clocksource/drivers/exynos_mct: Increase priority over ARM arch timer
2019-08-04 09:33:22 +02:00
connector
cpufreq
cpufreq/pasemi: fix use-after-free in pas_cpufreq_cpu_init()
2019-08-25 10:51:24 +02:00
cpuidle
cpuidle: big.LITTLE: fix refcount leak
2019-02-12 19:44:55 +01:00
crypto
crypto: talitos - fix missing break in switch statement
2019-10-05 12:30:07 +02:00
dax
dca
devfreq
PM / devfreq: passive: fix compiler warning
2019-10-05 12:30:29 +02:00
dio
dma
dmaengine: ti: edma: Do not reset reserved paRAM slots
2019-10-05 12:30:26 +02:00
dma-buf
dma-buf: remove redundant initialization of sg_table
2018-06-06 16:44:33 +02:00
edac
EDAC/altera: Use the proper type for the IRQ status bits
2019-10-05 12:30:20 +02:00
eisa
extcon
extcon: arizona: Disable mic detect if running when driver is removed
2019-05-31 06:48:26 -07:00
firewire
firmware
efi: cper: print AER info of PCIe fatal error
2019-10-05 12:30:21 +02:00
fmc
fpga
gpio
gpio: fix line flag validation in lineevent_create
2019-09-21 07:14:04 +02:00
gpu
gpu: drm: radeon: Fix a possible null-pointer dereference in radeon_connector_set_property()
2019-10-07 18:53:09 +02:00
hid
HID: hidraw: Fix invalid read in hidraw_ioctl
2019-10-05 12:30:06 +02:00
hsi
hv
Drivers: hv: vmbus: Return -EINVAL for the sys files for unopened channels
2018-12-29 13:40:15 +01:00
hwmon
hwmon: (acpi_power_meter) Change log level for 'unsafe software power cap'
2019-10-05 12:30:26 +02:00
hwspinlock
hwtracing
stm class: Fix a double free of stm_source_device
2019-09-06 10:19:51 +02:00
i2c
i2c: riic: Clear NACK in tend isr
2019-10-05 12:30:36 +02:00
ide
ide: pmac: add of_node_put()
2018-12-21 14:11:37 +01:00
idle
x86/cpu: Sanitize FAM6_ATOM naming
2019-05-14 19:19:34 +02:00
iio
iio: common: ssp_sensors: Initialize calculated_time in ssp_common_process_data
2019-05-31 06:48:27 -07:00
infiniband
IB/hfi1: Define variables as unsigned long to fix KASAN warning
2019-10-05 12:30:30 +02:00
input
Input: psmouse - fix build error of multiple definition
2019-08-25 10:51:51 +02:00
iommu
iommu/amd: Silence warnings under memory pressure
2019-10-05 12:30:25 +02:00
ipack
irqchip
irqchip/gic-v3-its: Fix LPI release for Multi-MSI devices
2019-10-05 12:30:10 +02:00
isdn
mISDN: enforce CAP_NET_RAW for raw sockets
2019-10-05 12:30:14 +02:00
leds
leds: leds-lp5562 allow firmware files up to the maximum length
2019-10-05 12:30:17 +02:00
lguest
lightnvm
macintosh
macintosh/rack-meter: Convert cputime64_t use to u64
2018-10-20 09:51:32 +02:00
mailbox
mailbox: handle failed named mailbox channel request
2019-08-04 09:33:41 +02:00
mcb
md
md/raid6: Set R5_ReadError when there is read failure on parity disk
2019-10-05 12:30:34 +02:00
media
media: sn9c20x: Add MSI MS-1039 laptop to flip_dmi_table
2019-10-05 12:30:32 +02:00
memory
memory: tegra: Fix integer overflow on tick value calculation
2019-05-25 18:26:49 +02:00
memstick
memstick: Fix error cleanup path of memstick_init
2019-08-04 09:33:37 +02:00
message
mfd
mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk
2019-08-04 09:33:39 +02:00
misc
VMCI: Release resource if the work is already queued
2019-09-06 10:19:52 +02:00
mmc
mmc: sdhci: Fix incorrect switch to HS mode
2019-10-05 12:30:27 +02:00
mtd
mtd: cfi_cmdset_0002: Use chip_good() to retry in do_write_oneword()
2019-10-05 12:30:07 +02:00
net
e1000e: add workaround for possible stalled packet
2019-10-05 12:30:27 +02:00
nfc
st_nci_hci_connectivity_event_received: null check the allocation
2019-09-06 10:19:32 +02:00
ntb
nubus
nvdimm
libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields
2019-08-04 09:33:29 +02:00
nvme
nvmet: fix data units read and written counters in SMART log
2019-10-05 12:30:25 +02:00
nvmem
nvmem: Use the same permissions for eeprom as for nvmem
2019-09-21 07:14:08 +02:00
of
of: add helper to lookup compatible child node
2018-12-01 09:44:21 +01:00
oprofile
parisc
parisc: Disable HP HSC-PCI Cards to prevent kernel crash
2019-10-05 12:30:31 +02:00
parport
parport: Fix mem leak in parport_register_dev_model
2019-07-10 09:55:29 +02:00
pci
PCI: xilinx-nwl: Fix Multi MSI data programming
2019-08-04 09:33:38 +02:00
pcmcia
pcmcia: Implement CLKRUN protocol disabling for Ricoh bridges
2018-11-13 11:16:46 -08:00
perf
drivers/perf: arm_pmu: Fix failure path in PM notifier
2019-08-06 18:29:41 +02:00
phy
phy: renesas: rcar-gen2: Fix memory leak at error paths
2019-08-04 09:33:37 +02:00
pinctrl
pinctrl: tegra: Fix write barrier placement in pmx_writel
2019-10-07 18:53:12 +02:00
platform
platform/x86: intel_pmc_ipc: adding error handling
2019-06-22 08:17:16 +02:00
pnp
power
power: supply: sysfs: ratelimit property read error message
2019-10-05 12:30:09 +02:00
powercap
x86/cpu: Sanitize FAM6_ATOM naming
2019-05-14 19:19:34 +02:00
pps
drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl
2019-08-04 09:33:45 +02:00
ps3
ptp
ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl
2019-02-12 19:44:52 +01:00
pwm
pwm: Fix deadlock warning when removing PWM device
2019-06-22 08:17:17 +02:00
rapidio
drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings
2019-08-06 18:29:38 +02:00
ras
regulator
regulator: Defer init completion for a while after late_initcall
2019-10-05 12:30:33 +02:00
remoteproc
reset
reset: make device_reset_optional() really optional
2018-12-08 13:05:08 +01:00
rpmsg
rpmsg: smd: fix memory leak on channel create
2018-11-13 11:17:03 -08:00
rtc
rtc: pcf8523: don't return invalid date when battery is low
2019-06-22 08:17:21 +02:00
s390
s390/qdio: add sanity checks to the fast-requeue path
2019-08-25 10:51:25 +02:00
sbus
drivers/sbus/char: add of_node_put()
2018-12-21 14:11:36 +01:00
scsi
scsi: ufs: Fix RX_TERMINATION_FORCE_ENABLE define value
2019-09-06 10:19:44 +02:00
sfi
sh
sn
soc
soc: mediatek: pwrap: Zero initialize rdata in pwrap_init_cipher
2019-06-22 08:17:15 +02:00
spi
spi: bcm2835aux: fix corruptions for longer spi transfers
2019-09-10 10:31:03 +01:00
spmi
ssb
ssb: Fix possible NULL pointer dereference in ssb_host_pcmcia_exit
2019-05-31 06:48:12 -07:00
staging
staging: comedi: dt3000: Fix rounding up of timer divisor
2019-08-25 10:51:48 +02:00
target
scsi: target/iscsi: Avoid iscsit_release_commands_from_conn() deadlock
2019-03-23 13:19:47 +01:00
tc
TC: Set DMA masks for devices
2018-11-13 11:17:02 -08:00
thermal
drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER
2019-06-22 08:17:13 +02:00
thunderbolt
tty
tty/serial: atmel: reschedule TX after RX was started
2019-09-21 07:14:10 +02:00
uio
uio: Fix an Oops on load
2018-11-27 16:09:41 +01:00
usb
USB: usbcore: Fix slab-out-of-bounds bug during device reset
2019-09-21 07:14:08 +02:00
uwb
uwb: hwa-rc: fix memory leak at probe
2018-10-03 17:01:42 -07:00
vfio
vfio_pci: Restore original state on release
2019-10-07 18:53:12 +02:00
vhost
vhost: make sure log_num < in_num
2019-09-16 08:19:34 +02:00
video
video: ssd1307fb: Start page range at page_offset
2019-10-07 18:53:09 +02:00
virt
drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl
2019-05-16 19:43:47 +02:00
virtio
virtio: Honour 'may_reduce_num' in vring_create_virtqueue
2019-04-17 08:36:47 +02:00
vlynq
vme
w1
w1: fix the resume command API
2019-05-31 06:48:15 -07:00
watchdog
watchdog: bcm2835_wdt: Fix module autoload
2019-09-06 10:19:43 +02:00
xen
xen/pciback: remove set but not used variable 'old_state'
2019-08-25 10:51:45 +02:00
zorro
Kconfig
Makefile