1
0
Fork 0
remarkable-linux/drivers
Nicholas Mc Guire f80c5cf3de staging: bcm2835-camera: handle wait_for_completion_timeout return properly
[ Upstream commit 5b70084f6c ]

wait_for_completion_timeout returns unsigned long not int so a variable of
proper type is introduced. Further the check for <= 0 is ambiguous and
should be == 0 here indicating timeout.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Fixes: 7b3ad5abf0 ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.")
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-09-26 08:38:03 +02:00
..
accessibility
acpi ACPI / scan: Initialize status to ACPI_STA_DEFAULT 2018-09-15 09:45:30 +02:00
amba ARM: amba: Don't read past the end of sysfs "driver_override" buffer 2018-05-01 12:58:21 -07:00
android android: binder: fix the race mmap and alloc_new_buf_locked 2018-09-19 22:43:35 +02:00
ata ata: libahci: Correct setting of DEVSLP register 2018-09-19 22:43:41 +02:00
atm atm: zatm: Fix potential Spectre v1 2018-07-22 14:28:43 +02:00
auxdisplay auxdisplay: fix broken menu 2018-07-03 11:24:56 +02:00
base PM / clk: signedness bug in of_pm_clk_add_clks() 2018-09-05 09:26:42 +02:00
bcma
block pktcdvd: Fix possible Spectre-v1 for pkt_devs 2018-09-19 22:43:43 +02:00
bluetooth Bluetooth: h5: Fix missing dependency on BT_HCIUART_SERDEV 2018-09-19 22:43:38 +02:00
bus drivers/perf: arm-ccn: don't log to dmesg in event_init 2018-08-03 07:50:31 +02:00
cdrom cdrom: Fix info leak/OOB read in cdrom_ioctl_drive_status 2018-09-05 09:26:42 +02:00
char tpm/tpm_i2c_infineon: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT) 2018-09-19 22:43:43 +02:00
clk clk: clk-fixed-factor: Clear OF_POPULATED flag in case of failure 2018-09-26 08:37:59 +02:00
clocksource clocksource/drivers/imx-tpm: Correct some registers operation flow 2018-06-21 04:02:40 +09:00
connector
cpufreq cpufreq: governor: Avoid accessing invalid governor_data 2018-09-09 19:55:58 +02:00
cpuidle cpuidle: powernv: Fix promotion from snooze if next state disabled 2018-07-03 11:24:51 +02:00
crypto crypto: caam/qi - fix error path in xts setkey 2018-09-09 19:56:02 +02:00
dax dev-dax: check_vma: ratelimit dev_info-s 2018-08-24 13:09:08 +02:00
dca
devfreq PM / devfreq: Fix potential NULL pointer dereference in governor_store 2018-04-12 12:32:13 +02:00
dio
dma dmaengine: pl330: fix irq race with terminate_all 2018-09-26 08:38:00 +02:00
dma-buf dma-buf: remove redundant initialization of sg_table 2018-06-05 11:41:57 +02:00
edac EDAC: Add missing MEM_LRDDR4 entry in edac_mem_types[] 2018-08-24 13:08:55 +02:00
eisa
extcon extcon: Release locking when sending the notification of connector state 2018-09-09 19:55:56 +02:00
firewire firewire-ohci: work around oversized DMA reads on JMicron controllers 2018-04-26 11:02:03 +02:00
firmware firmware: vpd: Fix section enabled flag on vpd_section_destroy 2018-09-19 22:43:40 +02:00
fmc
fpga fpga-manager: altera-ps-spi: preserve nCONFIG state 2018-05-01 12:58:24 -07:00
fsi
gpio gpio: ml-ioh: Fix buffer underwrite on probe error path 2018-09-19 22:43:42 +02:00
gpu drm/i915: set DP Main Stream Attribute for color range on DDI platforms 2018-09-19 22:43:45 +02:00
hid HID: add quirk for another PIXART OEM mouse used by HP 2018-09-15 09:45:35 +02:00
hsi
hv Drivers: hv: vmbus: Cleanup synic memory free path 2018-09-19 22:43:40 +02:00
hwmon hwmon: (nct6775) Fix potential Spectre v1 2018-09-05 09:26:40 +02:00
hwspinlock
hwtracing intel_th: Use correct device when freeing buffers 2018-06-05 11:41:59 +02:00
i2c i2c: aspeed: Add an explicit type casting for *get_clk_reg_val 2018-09-19 22:43:38 +02:00
ide cdrom: do not call check_disk_change() inside cdrom_open() 2018-05-30 07:52:34 +02:00
idle intel_idle: Graceful probe failure when MWAIT is disabled 2018-08-09 12:16:39 +02:00
iio iio: ad9523: Fix return value for ad952x_store() 2018-09-09 19:55:56 +02:00
infiniband IB/ipoib: Fix error return code in ipoib_dev_init() 2018-09-26 08:38:00 +02:00
input Input: atmel_mxt_ts - only use first T9 instance 2018-09-19 22:43:43 +02:00
iommu iommu/io-pgtable-arm-v7s: Abort allocation when table address overflows the PTE 2018-09-26 08:37:59 +02:00
ipack
irqchip irqchip/bcm7038-l1: Hide cpu offline callback when building for !SMP 2018-09-15 09:45:29 +02:00
isdn isdn: Disable IIOCDBGVAR 2018-08-22 07:46:11 +02:00
leds leds: pm8058: Silence pointer to integer size warning 2018-03-19 08:42:50 +01:00
lightnvm lightnvm: pblk: free padded entries in write buffer 2018-09-15 09:45:35 +02:00
macintosh macintosh/via-pmu: Add missing mmio accessors 2018-09-19 22:43:41 +02:00
mailbox mailbox: xgene-slimpro: Fix potential NULL pointer dereference 2018-09-09 19:55:54 +02:00
mcb
md dm cache: only allow a single io_mode cache feature to be requested 2018-09-19 22:43:43 +02:00
media media: ov5645: Supported external clock is 24MHz 2018-09-26 08:38:00 +02:00
memory memory: tegra: Apply interrupts mask per SoC 2018-08-03 07:50:38 +02:00
memstick
message scsi: mptfusion: Add bounds check in mptctl_hp_targetinfo() 2018-05-25 16:17:47 +02:00
mfd mfd: ti_am335x_tscadc: Fix struct clk memory leak 2018-09-19 22:43:44 +02:00
misc misc: ti-st: Fix memory leak in the error path of probe() 2018-09-19 22:43:39 +02:00
mmc mmc: renesas_sdhi_internal_dmac: fix #define RST_RESERVED_BITS 2018-09-09 19:55:53 +02:00
mtd mtd/maps: fix solutionengine.c printk format warnings 2018-09-26 08:38:00 +02:00
mux mux: core: fix double get_device() 2018-01-17 09:45:27 +01:00
net amd-xgbe: use dma_mapping_error to check map errors 2018-09-26 08:37:59 +02:00
nfc NFC: pn533: Fix wrong GFP flag usage 2018-08-24 13:09:06 +02:00
ntb ntb_transport: Fix bug with max_mw_size parameter 2018-04-26 11:02:13 +02:00
nubus
nvdimm libnvdimm: fix ars_status output length calculation 2018-09-09 19:56:01 +02:00
nvme nvme-rdma: unquiesce queues when deleting the controller 2018-09-26 08:38:02 +02:00
nvmem nvmem: Don't let a NULL cell_id for nvmem_cell_get() crash us 2018-08-24 13:09:14 +02:00
of of: platform: stop accessing invalid dev in of_platform_device_destroy 2018-07-03 11:24:52 +02:00
oprofile
parisc parisc/pci: Switch LBA PCI bus from Hard Fail to Soft Fail mode 2018-05-30 07:52:28 +02:00
parport parport_pc: Add support for WCH CH382L PCI-E single parallel port card. 2018-04-08 14:26:31 +02:00
pci switchtec: Fix Spectre v1 vulnerability 2018-09-19 22:43:37 +02:00
pcmcia PCMCIA / PM: Avoid noirq suspend aborts during suspend-to-idle 2018-05-30 07:52:39 +02:00
perf drivers/perf: xgene_pmu: Fix IOB SLOW PMU parser error 2018-08-24 13:08:59 +02:00
phy phy: phy-mtk-tphy: use auto instead of force to bypass utmi signals 2018-08-15 18:12:48 +02:00
pinctrl pinctrl/amd: only handle irq if it is pending and unmasked 2018-09-19 22:43:42 +02:00
platform platform/x86: asus-nb-wmi: Add keymap entry for lid flip action on UX360 2018-09-15 09:45:28 +02:00
pnp
power power: generic-adc-battery: check for duplicate properties copied from iio channels 2018-09-05 09:26:42 +02:00
powercap
pps
ps3
ptp ptp: fix missing break in switch 2018-07-25 11:25:10 +02:00
pwm pwm: meson: Fix mux clock names 2018-09-15 09:45:27 +02:00
rapidio
ras
regulator regulator: Don't return or expect -errno from of_map_mode() 2018-08-03 07:50:40 +02:00
remoteproc remoteproc: qcom: Fix potential device node leaks 2018-06-21 04:02:48 +09:00
reset
rpmsg rpmsg: core: add support to power domains for devices 2018-09-19 22:43:41 +02:00
rtc rtc: omap: fix potential crash on power off 2018-09-09 19:55:57 +02:00
s390 s390/dasd: fix panic for failed online processing 2018-09-15 09:45:30 +02:00
sbus
scsi scsi: 3ware: fix return 0 on the error path of probe 2018-09-19 22:43:42 +02:00
sfi
sh
sn
soc soc: imx: gpc: restrict register range for regmap access 2018-08-24 13:09:19 +02:00
spi spi: cadence: Change usleep_range() to udelay(), for atomic context 2018-09-09 19:55:53 +02:00
spmi
ssb
staging staging: bcm2835-camera: handle wait_for_completion_timeout return properly 2018-09-26 08:38:03 +02:00
target scsi: target: fix __transport_register_session locking 2018-09-19 22:43:39 +02:00
tc
tee tee: check shm references are consistent in offset/size 2018-06-21 04:02:54 +09:00
thermal thermal: exynos: fix setting rising_threshold for Exynos5433 2018-08-03 07:50:37 +02:00
thunderbolt thunderbolt: Prevent crash when ICM firmware is not running 2018-04-24 09:36:29 +02:00
tty tty: rocket: Fix possible buffer overwrite on register_PCI 2018-09-19 22:43:40 +02:00
uio uio: potential double frees if __uio_register_device() fails 2018-09-19 22:43:40 +02:00
usb usb: dwc3: change stream event enable bit back to 13 2018-09-26 08:37:58 +02:00
uwb
vfio vfio/type1: Fix task tracking for QEMU vCPU hotplug 2018-08-03 07:50:23 +02:00
vhost vhost: correctly check the iova range when waking virtqueue 2018-09-15 09:45:25 +02:00
video fbdev: Distinguish between interlaced and progressive modes 2018-09-26 08:38:02 +02:00
virt
virtio virtio: pci-legacy: Validate queue pfn 2018-09-15 09:45:27 +02:00
vlynq
vme
w1 1wire: family module autoload fails because of upper/lower case mismatch. 2018-07-03 11:24:47 +02:00
watchdog watchdog: da9063: Fix updating timeout value 2018-08-03 07:50:24 +02:00
xen xen/balloon: fix balloon initialization for PVH Dom0 2018-09-15 09:45:30 +02:00
zorro zorro: Set up z->dev.dma_mask for the DMA API 2018-05-30 07:52:30 +02:00
Kconfig
Makefile usb: build drivers/usb/common/ when USB_SUPPORT is set 2018-02-25 11:07:53 +01:00