linux/drivers/fsi
Eddie James d3e1e24604 fsi: occ: Prevent use after free
Use get_device and put_device in the open and close functions to
make sure the device doesn't get freed while a file descriptor is
open.
Also, lock around the freeing of the device buffer and check the
buffer before using it in the submit function.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220513194424.53468-1-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-09-28 21:10:57 +09:30
..
cf-fsi-fw.h fsi: cf-fsi-fw: Use the correct style for SPDX License Identifier 2019-06-19 19:35:51 +02:00
fsi-core.c fsi: Add trace events in initialization path 2022-02-21 19:38:54 +10:30
fsi-master-aspeed.c FSI changes for v5.18 2022-02-21 17:47:42 +01:00
fsi-master-ast-cf.c fsi: master-ast-cf: Remove redundant error printing in fsi_master_acf_probe() 2021-06-04 15:02:55 +09:30
fsi-master-gpio.c fsi: Add missing MODULE_DEVICE_TABLE 2021-06-04 14:10:45 +09:30
fsi-master-hub.c fsi: master: Constify hub_master_ids 2020-09-10 12:22:50 +09:30
fsi-master.h fsi: Fix typo in comment 2022-09-27 16:57:17 +09:30
fsi-occ.c fsi: occ: Prevent use after free 2022-09-28 21:10:57 +09:30
fsi-sbefifo.c fsi: sbefifo: Implement FSI_SBEFIFO_READ_TIMEOUT_SECONDS ioctl 2022-02-21 19:38:17 +10:30
fsi-scom.c fsi: scom: Remove retries in indirect scoms 2022-01-31 15:56:55 +10:30
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile fsi: Add ast2600 master driver 2019-11-08 11:28:20 +01:00