alistair23-linux/drivers/staging
Okash Khawaja e4dd8bca3d staging: speakup: fix synth caching when synth init fails
synths[] array caches currently loaded synths. synth_add checks
synths[] before adding a new one. It however ignores the result of
do_synth_init. So when do_synth_init fails, the failed synth is still
cached. Since, as a result module loading fails too, synth_remove -
which is responsible for removing the cached synth - is never called.
Next time the failing synth is added again it succeeds because
synth_add finds it cached inside synths[].

This patch fixes this by caching a synth only after do_synth_init
succeeds.

Signed-off-by: Okash Khawaja <okash.khawaja@gmail.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-25 16:31:22 +02:00
..
android staging: android: ion: Improve memory alloc style 2017-06-14 12:37:22 +02:00
board
ccree staging: ccree: use signal safe completion wait 2017-06-25 16:29:15 +02:00
clocking-wizard
comedi staging: comedi: use centralized error clean-up in comedi_init() 2017-06-24 00:37:07 +08:00
dgnc dgnc: fix multiple blank lines coding style problem 2017-05-25 18:56:45 +02:00
emxx_udc staging: emxx_udc: Update "reserved" registers name 2017-05-15 07:42:00 +02:00
fbtft staging: fbtft: Fix to avoid precedence issues 2017-05-29 16:41:37 +02:00
fsl-dpaa2 staging: fsl-mc: move mc-cmd.h contents in the public header 2017-06-23 18:44:01 +02:00
fsl-mc staging: fsl-mc: make dprc.h header private 2017-06-23 18:44:01 +02:00
fwserial
gdm724x Staging: gdm724x: Change spaces to tabs 2017-06-03 17:38:26 +09:00
goldfish
greybus staging: greybus: mark PM functions as __maybe_unused 2017-05-18 16:07:08 +02:00
gs_fpgaboot
iio Merge 4.12-rc6 into staging-next 2017-06-20 10:17:45 +08:00
ks7010 staging: ks7010: use little-endian types 2017-06-13 12:06:43 +02:00
lustre staging: lustre: lustre: add all missing indentifier names 2017-06-24 00:17:02 +08:00
media [media] atomisp: don't treat warnings as errors 2017-06-04 15:23:32 -03:00
most staging: most: net: hold used net device 2017-06-24 00:32:46 +08:00
mt29f_spinand
netlogic
nvec
octeon staging: octeon: use __func__ instead of func name 2017-05-15 07:41:58 +02:00
octeon-usb staging: octeon-usb: use correct function for hcd cleanup 2017-05-15 07:43:55 +02:00
olpc_dcon
rtl8188eu staging: rtl8188eu: style fixes 2017-06-25 16:31:21 +02:00
rtl8192e staging: rtl8192e: remove dead code rtllib_wpa_supplicant_ioctl 2017-06-24 00:35:07 +08:00
rtl8192u staging: rtl8192u - add parameter names 2017-06-25 16:31:22 +02:00
rtl8712 Staging: rtl8712 : wifi.h: Fixed Macro argument reuse 2017-06-25 16:31:22 +02:00
rtl8723bs staging: rtl8723bs - remove asm includes 2017-06-25 16:31:21 +02:00
rts5208 staging/rts5208: Fix read overflow in memcpy 2017-06-06 16:16:10 +02:00
skein
sm750fb staging: sm750fb - add parameter names 2017-06-25 16:31:21 +02:00
speakup staging: speakup: fix synth caching when synth init fails 2017-06-25 16:31:22 +02:00
typec staging: fusb302: don't bitshift __le16 type 2017-06-23 18:47:59 +02:00
unisys staging: unisys: visorhba - octal permissions 2017-06-25 16:31:21 +02:00
vc04_services staging: vchiq_core: Replace remaining BUG_ON with WARN_ON 2017-05-29 17:04:13 +02:00
vme staging: vme: Use BIT macro for bit definitions 2017-05-16 13:53:23 +02:00
vt6655 staging: vt6655 - add parameter names 2017-06-25 16:31:22 +02:00
vt6656 staging: vt6656: remove unnecesary blank lines 2017-05-18 15:59:37 +02:00
wilc1000 staging: wilc1000: New cfg packet format in handle_set_wfi_drv_handler 2017-06-13 12:06:57 +02:00
wlan-ng staging: wlan-ng: Fix struct definition's and variable type 2017-06-23 19:37:38 +02:00
xgifb staging: fb_xgi: vb_table: Remove white space after tabstop 2017-06-23 19:36:49 +02:00
Kconfig
Makefile