linux/drivers/misc
Xiongfeng Wang 1749c90489 misc: pci_endpoint_test: fix return value of error branch
We return 'err' in the error branch, but this variable may be set as
zero before. Fix it by setting 'err' as a negative value before we
goto the error label.

Fixes: e03327122e ("pci_endpoint_test: Add 2 ioctl commands")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Link: https://lore.kernel.org/r/1605790158-6780-1-git-send-email-wangxiongfeng2@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-09 19:43:44 +01:00
..
altera-stapl
c2port misc: c2port: core: Make copying name from userspace more secure 2020-11-03 10:12:10 +01:00
cardreader misc: rtsx: rts5249 support runtime PM 2020-12-09 19:42:18 +01:00
cb710
cxl cxl: Rework error message for incompatible slots 2020-08-25 01:31:32 +10:00
echo
eeprom eeprom: at25: Add example part numbers 2020-11-14 00:24:32 +01:00
genwqe misc: genwqe: Use dma_set_mask_and_coherent to simplify code 2020-12-09 19:43:02 +01:00
habanalabs Merge 5.10-rc7 into char-misc-next 2020-12-07 10:08:14 +01:00
ibmasm
lis3lv02d
lkdtm lkdtm: don't move ctors to .rodata 2020-12-09 15:51:14 +01:00
mei mei: bus: enable pavp device. 2020-12-07 10:29:57 +01:00
ocxl misc: ocxl: config: Rename function attribute description 2020-11-03 10:12:10 +01:00
sgi-gru x86/platform/uv: Update Copyrights to conform to HPE standards 2020-10-07 09:10:07 +02:00
sgi-xp misc/sgi-xp: Replace in_interrupt() usage 2020-12-09 19:35:52 +01:00
ti-st misc: ti-st: st_core: remove unneeded semicolon 2020-11-03 10:09:06 +01:00
uacce uacce: modify the module author information. 2020-11-09 18:41:03 +01:00
vmw_vmci misc: vmw_vmci: fix kernel info-leak by initializing dbells in vmci_ctx_get_chkpt_doorbells() 2020-12-09 19:36:26 +01:00
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c
apds9802als.c
atmel_tclib.c
atmel-ssc.c
bh1770glc.c
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
enclosure.c
fastrpc.c misc: fastrpc: add ioctl for attaching to sensors pd 2020-09-16 17:30:37 +02:00
hisi_hikey_usb.c misc: hisi_hikey_usb: use PTR_ERR_OR_ZERO 2020-10-29 08:37:29 +01:00
hmc6352.c
hpilo.c
hpilo.h
ibmvmc.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
ibmvmc.h
ics932s401.c
isl29003.c misc: isl29003: Fix typo for get/set mode 2020-12-09 19:35:34 +01:00
isl29020.c
Kconfig misc: mic: remove the MIC drivers 2020-10-28 19:12:03 +01:00
kgdbts.c kgdbts: switch to kernel_clone() 2020-08-20 13:12:59 +02:00
lattice-ecp3-config.c
Makefile misc: mic: remove the MIC drivers 2020-10-28 19:12:03 +01:00
pch_phub.c
pci_endpoint_test.c misc: pci_endpoint_test: fix return value of error branch 2020-12-09 19:43:44 +01:00
phantom.c
pti.c
pvpanic.c misc: pvpanic: Use devm_platform_ioremap_resource() 2020-09-22 18:53:30 +02:00
qcom-coincell.c
sram-exec.c
sram.c
sram.h
tifm_7xx1.c
tifm_core.c
tsl2550.c
vmw_balloon.c
xilinx_sdfec.c misc: xilinx-sdfec: remove check for ioctl cmd and argument. 2020-11-03 10:11:48 +01:00