linux/drivers/staging
Hugo Lefeuvre 983000d7fa staging: pi433: fix race condition in pi433_open
The device structure contains a useless non-atomic users counter which
is subject to race conditions. It has probably been created to handle
the case where remove is executed while operations are still executing
on open fds but this will never happen because of reference counts.

Drop the users counter and move rx buffer {de,}allocation to probe()
and remove(). Remove associated dead code from open() and release().
Remove related TODO entry from ioctl().

Signed-off-by: Hugo Lefeuvre <hle@owl.eu.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-28 22:00:13 +09:00
..
android staging: android/vsoc: stop using 'timespec' 2018-06-28 21:57:06 +09:00
board staging: board: Replace license boilerplate with SPDX identifiers 2018-05-06 19:11:23 -07:00
clocking-wizard staging: clocking-wizard: prefer 'help' in Kconfig 2018-06-17 09:05:13 +02:00
comedi Staging: comedi: comedi_compat32.h: fixed missing or malformed SPDX-License-Identifier 2018-06-18 10:55:11 +02:00
dgnc
emxx_udc staging: emxx_udc: Add GPIO descriptor work to TODO 2018-04-23 14:36:10 +02:00
fbtft - Core Frameworks 2018-06-11 07:23:19 -07:00
fsl-dpaa2 Staging/IIO patches for 4.18-rc1 2018-06-09 10:32:39 -07:00
fsl-mc docs: fix broken references with multiple hints 2018-06-15 18:10:01 -03:00
fwserial tty: replace ->proc_fops with ->proc_show 2018-05-16 07:24:30 +02:00
gdm724x Staging: gdm724x: use match_string() helper 2018-06-17 09:05:13 +02:00
goldfish staging: goldfish: Fix checkpatch CHECK in goldfish_audio.c 2018-06-18 10:55:11 +02:00
greybus treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
gs_fpgaboot
iio staging:iio:accel:adis16240: sign extend function replace hard code duplication 2018-06-24 14:45:06 +01:00
ks7010 staging: ks7010: avoid casting inside cpu_to_* assignments 2018-05-20 14:47:14 +02:00
media media: v4l: fix broken video4linux docs locations 2018-06-15 18:10:01 -03:00
most staging: most: video: fix build warnings 2018-05-14 11:42:28 +02:00
mt29f_spinand MTD changes: 2018-04-06 12:15:41 -07:00
mt7621-dma staging: mt7621-dma: Fixing parenthesis alignment 2018-03-23 16:00:18 +01:00
mt7621-dts staging: mt7621-gpio: avoid use banks in device tree 2018-06-28 21:50:59 +09:00
mt7621-eth staging: mt7621-eth: Use eth_hw_addr_random() 2018-06-28 21:50:16 +09:00
mt7621-gpio staging: mt7621-gpio: avoid use banks in device tree 2018-06-28 21:50:59 +09:00
mt7621-mmc staging: mt7621-mmc: Find response of SD_APP_OP_COND by default 2018-06-28 21:48:05 +09:00
mt7621-pci staging: mt7621-pci: Fix coding style error 2018-06-17 09:05:12 +02:00
mt7621-pinctrl staging: mt7621-pinctrl: replace ENOSYS with better fitting error code 2018-06-28 21:46:05 +09:00
mt7621-spi staging: mt7621-spi: Remove unnecessary braces {} from single statement if block. 2018-06-17 09:05:12 +02:00
netlogic
nvec Revert "staging: nvec: Augment TODO file with GPIO work item" 2018-04-23 18:49:51 +02:00
octeon
octeon-usb
olpc_dcon staging: olpc_dcon: Augment TODO file with GPIO work item 2018-04-23 14:36:10 +02:00
pi433 staging: pi433: fix race condition in pi433_open 2018-06-28 22:00:13 +09:00
rtl8188eu staging: rtl8188eu: add SPDX identifiers 2018-06-26 11:58:22 +08:00
rtl8192e Staging:rtl8192e Cleanup comparison to NULL 2018-06-26 11:47:29 +08:00
rtl8192u staging: rtl8192u: Correction of spelling mistake in comment. 2018-06-26 11:57:13 +08:00
rtl8712
rtl8723bs staging: rtl8723bs: drop test 2018-06-17 09:05:14 +02:00
rtlwifi staging: rtlwifi: Fix "Alwyas"->"Always" 2018-06-17 09:05:14 +02:00
rts5208 staging: rts5208: add error handling into rtsx_probe 2018-06-17 09:05:13 +02:00
skein
sm750fb staging: sm750fb: add drm development branch details 2018-05-06 18:51:38 -07:00
speakup staging: speakup: refactor synths array to use a list 2018-06-17 09:05:11 +02:00
typec staging: typec: rt1711h typec chip driver 2018-04-22 16:08:25 +02:00
unisys treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
vboxvideo staging: vboxvideo: Update driver to use drm_dev_register. 2018-06-17 09:05:13 +02:00
vc04_services staging: vc04_services: make a couple of pointers static 2018-06-17 09:05:14 +02:00
vme staging: vme: vme_user: Fix some error handling paths in 'vme_user_probe()' 2018-03-23 15:55:21 +01:00
vt6655 staging: vt6655: remove unnecessary line breaks in function definition. 2018-04-23 15:23:36 +02:00
vt6656
wilc1000 staging: wilc1000: updated TODO file 2018-06-28 21:55:52 +09:00
wlan-ng staging: wlan-ng: remove unused declarations from p80211types.h 2018-05-31 19:00:53 +02:00
xgifb Staging: xgifb: XGI_main_26.c: Refactored the function 2018-03-22 18:29:50 +01:00
Kconfig staging: ipx: delete it from the tree 2018-06-05 19:23:26 +02:00
Makefile staging: ipx: delete it from the tree 2018-06-05 19:23:26 +02:00