android_kernel_motorola_sm6375/drivers/rapidio
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Anirudh Rayabharam d55df42ef3 rapidio: handle create_workqueue() failure
commit 69ce3ae36dcb03cdf416b0862a45369ddbf50fdf upstream.

In case create_workqueue() fails, release all resources and return -ENOMEM
to caller to avoid potential NULL pointer deref later. Move up the
create_workequeue() call to return early and avoid unwinding the call to
riocm_rx_fill().

Cc: Alexandre Bounine <[email protected]>
Cc: Matt Porter <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Anirudh Rayabharam <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-05-26 12:05:17 +02:00
..
devices rapidio: fix the missed put_device() for rio_mport_add_riodev 2020-10-29 09:57:53 +01:00
switches
Kconfig
Makefile
rio-access.c
rio-driver.c
rio-scan.c
rio-sysfs.c
rio.c
rio.h
rio_cm.c rapidio: handle create_workqueue() failure 2021-05-26 12:05:17 +02:00