android_kernel_samsung_a7y1.../drivers
Thomas Zimmermann 0b1f572291 drm/vmwgfx: Don't double-free the mode stored in par->set_mode
commit c2d311553855395764e2e5bf401d987ba65c2056 upstream.

When calling vmw_fb_set_par(), the mode stored in par->set_mode gets free'd
twice. The first free is in vmw_fb_kms_detach(), the second is near the
end of vmw_fb_set_par() under the name of 'old_mode'. The mode-setting code
only works correctly if the mode doesn't actually change. Removing
'old_mode' in favor of using par->set_mode directly fixes the problem.

Cc: <stable@vger.kernel.org>
Fixes: a278724aa23c ("drm/vmwgfx: Implement fbdev on kms v2")
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 10:58:11 +02:00
..
accessibility
acpi
amba
android
ata
atm
auxdisplay
base
battery
battery_v2
bcma
block
bluetooth
bts
bus
ccic
cdrom
char
clk
clocksource
connector
cpufreq
cpuidle
crypto
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
fingerprint
firewire
firmware
five
fmc
fpga
gator
gpio
gps
gpu drm/vmwgfx: Don't double-free the mode stored in par->set_mode 2020-04-06 10:58:11 +02:00
gud
hid
hsi
hv
hwmon
hwspinlock
hwtracing
i2c
ide
idle
iio
infiniband
input
iommu
ipack
irqchip
isdn
leds
lguest
lightnvm
macintosh
mailbox
mcb
md
media
memory
memstick
message
mfd
misc
mmc mmc: pxamci: fix enum type confusion 2020-04-06 10:57:38 +02:00
motor
mtd
muic
net
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
oprofile
parisc
parport
pci
pcmcia
perf
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi
security/samsung/icdrv
sensorhub
sensors
sfi
sh
sn
soc
spi
spmi
ssb
staging
switch
target
tc
tee
thermal
thunderbolt
trace
tty
uh
uio
usb
uwb
vfio
vhost
video
virt
virtio
vision
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile