1
linux/drivers/pps/clients
Ma Ke 62c5a01a57 pps: add an error check in parport_attach
In parport_attach, the return value of ida_alloc is unchecked, witch leads
to the use of an invalid index value.

To address this issue, index should be checked. When the index value is
abnormal, the device should be freed.

Found by code review, compile tested only.

Cc: stable@vger.kernel.org
Fixes: fb56d97df7 ("pps: client: use new parport device model")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Acked-by: Rodolfo Giometti <giometti@enneenne.com>
Link: https://lore.kernel.org/r/20240828131814.3034338-1-make24@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-03 12:33:09 +02:00
..
Kconfig
Makefile
pps_parport.c pps: add an error check in parport_attach 2024-09-03 12:33:09 +02:00
pps-gpio.c pps: clients: gpio: Convert to platform remove callback returning void 2024-05-27 10:13:55 +02:00
pps-ktimer.c
pps-ldisc.c