android_kernel_oneplus_msm8998/drivers/misc
Dan Carpenter 344edd7fc4 vmci: type promotion bug in qp_host_get_user_memory()
[ Upstream commit 7fb2fd4e25fc1fb10dcb30b5519de257cfeae84c ]

The problem is that if get_user_pages_fast() fails and returns a
negative error code, it gets type promoted to a high positive value and
treated as a success.

Fixes: 06164d2b72 ("VMCI: queue pairs implementation.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-10 08:52:03 +02:00
..
altera-stapl
c2port
cb710
cxl
echo
eeprom
genwqe
ibmasm ibmasm: don't write out of bounds in read handler 2018-07-17 11:31:42 +02:00
lis3lv02d
mei mei: bus: type promotion bug in mei_nfc_if_version() 2018-09-26 08:35:10 +02:00
mic misc: mic: SCIF Fix scif_get_new_port() error handling 2018-09-19 22:48:56 +02:00
sgi-gru
sgi-xp
ti-st misc: ti-st: Fix memory leak in the error path of probe() 2018-09-19 22:48:57 +02:00
vmw_vmci vmci: type promotion bug in qp_host_get_user_memory() 2018-10-10 08:52:03 +02:00
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c
apds9802als.c
arm-charlcd.c
atmel-ssc.c
atmel_tclib.c
bh1770glc.c
bh1780gli.c
bmp085-i2c.c
bmp085-spi.c
bmp085.c
bmp085.h
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
enclosure.c
fsa9480.c
hmc6352.c misc: hmc6352: fix potential Spectre v1 2018-09-26 08:35:07 +02:00
hpilo.c
hpilo.h
ics932s401.c
ioc4.c
isl29003.c
isl29020.c
Kconfig
kgdbts.c
lattice-ecp3-config.c
lkdtm.c
Makefile
pch_phub.c
phantom.c
pti.c
qcom-coincell.c
spear13xx_pcie_gadget.c
sram.c
ti_dac7512.c
tifm_7xx1.c
tifm_core.c
tsl2550.c tsl2550: fix lux1_input error in low light 2018-10-10 08:52:03 +02:00
vexpress-syscfg.c
vmw_balloon.c vmw_balloon: include asm/io.h 2018-09-19 22:48:59 +02:00