linux/drivers/accessibility/speakup
Haoxiang Li a76acbaec9 accessibility: speakup: unregister tty ldisc on later init failures
The ldisc registration is intentionally non-fatal, since some synth
drivers do not use tty/ldisc.  However, once speakup_init() continues
past the registration point and later fails, the init unwind path should
mirror speakup_exit() and call spk_ttyio_unregister_ldisc().

Add the missing unregister call to the error path after synth_release(),
matching the normal module exit cleanup order.

Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Fixes: e23a9b439c ("staging: speakup: safely register and unregister ldisc")
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260531230804.254962-16-samuel.thibault@ens-lyon.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-17 14:54:56 +02:00
..
.gitignore speakup: Generate speakupmap.h automatically 2022-06-27 15:15:55 +02:00
buffers.c
DefaultKeyAssignments
devsynth.c speakup: Turn i18n files utf-8 2024-04-11 14:30:29 +02:00
fakekey.c speakup: Fix spelling of "re-enable" 2026-07-17 14:54:55 +02:00
genmap.c speakup: Fix the wrong format specifier 2026-07-17 14:54:55 +02:00
i18n.c speakup: Fix typo in a speakup message 2026-07-17 14:54:56 +02:00
i18n.h speakup: Separate out translations for bright colors names 2021-06-15 17:07:46 +02:00
Kconfig speakup: add HAS_IOPORT dependency for SPEAKUP_SERIALIO 2023-05-31 19:17:40 +01:00
keyhelp.c speakup: keyhelp: guard letter_offsets possible out-of-range indexing 2026-07-17 14:54:55 +02:00
kobjects.c accessibility: Use str_plural() to simplify the code 2026-07-17 14:54:55 +02:00
main.c accessibility: speakup: unregister tty ldisc on later init failures 2026-07-17 14:54:56 +02:00
Makefile speakup: use SPKDIR=$(src) to specify the source directory 2024-11-04 17:53:09 +09:00
makemapdata.c treewide: remove unnecessary <linux/version.h> inclusion 2024-08-12 18:36:44 +09:00
selection.c speakup: Standardize character attribute types to u16 2026-07-17 14:54:55 +02:00
serialio.c accessiblity: speakup: cleanup comments 2022-04-20 19:24:00 +02:00
serialio.h serial: Consolidate BOTH_EMPTY use 2022-06-27 14:41:31 +02:00
speakup_acnt.h accessibility/speakup/speakup_acnt: Add header file macro definition 2026-07-17 14:54:55 +02:00
speakup_acntpc.c Accessiblity: speakup_acntpc: specifying the default driver parameters among the module params 2022-11-23 19:46:27 +01:00
speakup_acntsa.c Accessiblity: speakup_acntsa: specifying the default driver parameters among the module params 2022-11-23 19:46:27 +01:00
speakup_apollo.c Accessiblity: speakup_apollo: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_audptr.c Accessiblity: speakup_audptr: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_bns.c Accessiblity: speakup_bns: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_decext.c Accessiblity: speakup_decext: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_decpc.c speakup: Fix incorrect "index" plural 2026-07-17 14:54:56 +02:00
speakup_dectlk.c Accessiblity: speakup_dectlk: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_dtlk.c Accessiblity: speakup_dtlk: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_dtlk.h speakup: Standardize character attribute types to u16 2026-07-17 14:54:55 +02:00
speakup_dummy.c Accessiblity: speakup_dummy: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_keypc.c Accessiblity: speakup_keypc: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_ltlk.c Accessiblity: speakup_ltlk: specifying the default driver parameters among the module params 2022-11-23 19:46:27 +01:00
speakup_soft.c speakup: speakup_soft: fix comment style and repeated word 2026-07-17 14:54:56 +02:00
speakup_spkout.c Accessiblity: speakup_spkout: specifying the default driver parameters among the module params 2022-11-23 19:46:27 +01:00
speakup_txprt.c Accessiblity: speakup_txprt: specifying the default driver parameters among the module params 2022-11-23 19:46:27 +01:00
speakup.h speakup: Standardize character attribute types to u16 2026-07-17 14:54:55 +02:00
speakupmap.map
spk_priv_keyinfo.h
spk_priv.h speakup: add the missing synth parameter to all io functions 2021-01-27 13:12:04 +01:00
spk_ttyio.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
spk_types.h speakup: Standardize character attribute types to u16 2026-07-17 14:54:55 +02:00
synth.c speakup: Fix spelling of "re-enable" 2026-07-17 14:54:55 +02:00
thread.c
TODO
utils.h speakup/utils: use "!P" instead of "P == 0" 2026-07-17 14:54:55 +02:00
varhandlers.c accessibility: speakup: phonetic spelling while arrowing letter by letter 2022-11-23 19:47:15 +01:00