WSL2-Linux-Kernel/drivers/fsi
Jiasheng Jiang 35af9fb49b fsi: core: Check error number after calling ida_simple_get
If allocation fails, the ida_simple_get() will return error number.
So master->idx could be error number and be used in dev_set_name().
Therefore, it should be better to check it and return error if fails,
like the ida_simple_get() in __fsi_get_new_minor().

Fixes: 09aecfab93 ("drivers/fsi: Add fsi master definition")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20220111073411.614138-1-jiasheng@iscas.ac.cn
Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-09-28 21:10:57 +09: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
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: core: Check error number after calling ida_simple_get 2022-09-28 21:10:57 +09: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: Fix missing of_node_put in fsi_master_acf_probe 2022-09-28 21:10:57 +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: Support probing the hwmon child device from dts node 2022-09-28 21:10:57 +09:30
fsi-sbefifo.c fsi: sbefifo: Add detailed debugging information 2022-09-28 21:10:57 +09:30
fsi-scom.c fsi: scom: Remove retries in indirect scoms 2022-01-31 15:56:55 +10:30