linux-next/drivers/net/wwan/iosm
Aleksandr Mishin b0c9a26435 net: wwan: iosm: Fix tainted pointer delete is case of region creation fail
In case of region creation fail in ipc_devlink_create_region(), previously
created regions delete process starts from tainted pointer which actually
holds error code value.
Fix this bug by decreasing region index before delete.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 4dcd183fbd ("net: wwan: iosm: devlink registration")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Acked-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240604082500.20769-1-amishin@t-argos.ru
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-06-06 10:15:14 +02:00
..
iosm_ipc_chnl_cfg.c net: wwan: iosm: add rpc interface for xmm modems 2022-11-02 11:51:03 +00:00
iosm_ipc_chnl_cfg.h drivers: net: wwan: iosm: Fixed multiple typos in multiple files 2023-10-18 17:45:44 -07:00
iosm_ipc_coredump.c net: wwan: iosm: fix kernel test robot reported errors 2022-11-09 14:00:25 +00:00
iosm_ipc_coredump.h wwan: iosm: use a flexible array rather than allocate short objects 2022-05-20 17:56:50 -07:00
iosm_ipc_debugfs.c net: wwan: iosm: drop debugfs dev reference 2022-02-14 14:09:59 +00:00
iosm_ipc_debugfs.h net: wwan: make debugfs optional 2021-12-08 17:58:59 -08:00
iosm_ipc_devlink.c net: wwan: iosm: Fix tainted pointer delete is case of region creation fail 2024-06-06 10:15:14 +02:00
iosm_ipc_devlink.h net: wwan: iosm: correct devlink extra params 2021-10-02 16:05:20 +01:00
iosm_ipc_flash.c net: wwan: iosm: correct devlink extra params 2021-10-02 16:05:20 +01:00
iosm_ipc_flash.h net: wwan: iosm: fw flashing and cd improvements 2021-09-22 14:23:33 +01:00
iosm_ipc_imem_ops.c net: wwan: iosm: fix NULL pointer dereference when removing device 2023-05-17 12:58:42 +01:00
iosm_ipc_imem_ops.h drivers: net: wwan: iosm: Fixed multiple typos in multiple files 2023-10-18 17:45:44 -07:00
iosm_ipc_imem.c Revert "net: wwan: iosm: enable runtime pm support for 7560" 2023-10-18 11:08:52 +01:00
iosm_ipc_imem.h Revert "net: wwan: iosm: enable runtime pm support for 7560" 2023-10-18 11:08:52 +01:00
iosm_ipc_irq.c
iosm_ipc_irq.h
iosm_ipc_mmio.c net: wwan: iosm: Enable M.2 7360 WWAN card support 2022-02-13 11:55:28 +00:00
iosm_ipc_mmio.h net: wwan: iosm: Enable M.2 7360 WWAN card support 2022-02-13 11:55:28 +00:00
iosm_ipc_mux_codec.c net: wwan: iosm: Convert single instance struct member to flexible array 2023-06-22 11:27:47 +02:00
iosm_ipc_mux_codec.h net: wwan: iosm: Convert single instance struct member to flexible array 2023-06-22 11:27:47 +02:00
iosm_ipc_mux.c net: wwan: iosm: fix memory leak in ipc_mux_init() 2022-12-06 11:39:35 +01:00
iosm_ipc_mux.h drivers: net: wwan: iosm: Fixed multiple typos in multiple files 2023-10-18 17:45:44 -07:00
iosm_ipc_pcie.c Revert "net: wwan: iosm: enable runtime pm support for 7560" 2023-10-18 11:08:52 +01:00
iosm_ipc_pcie.h net: wwan: iosm: Enable M.2 7360 WWAN card support 2022-02-13 11:55:28 +00:00
iosm_ipc_pm.c net: iosm: power management 2021-06-13 13:49:38 -07:00
iosm_ipc_pm.h drivers: net: wwan: iosm: Fixed multiple typos in multiple files 2023-10-18 17:45:44 -07:00
iosm_ipc_port.c Revert "net: wwan: iosm: enable runtime pm support for 7560" 2023-10-18 11:08:52 +01:00
iosm_ipc_port.h drivers: net: wwan: iosm: Fixed multiple typos in multiple files 2023-10-18 17:45:44 -07:00
iosm_ipc_protocol_ops.c net: wwan: iosm: remove pointless null check 2022-05-19 18:44:44 -07:00
iosm_ipc_protocol_ops.h net: iosm: protocol operations 2021-06-13 13:49:38 -07:00
iosm_ipc_protocol.c net: wwan: iosm: switch from 'pci_' to 'dma_' API 2021-08-23 11:56:56 +01:00
iosm_ipc_protocol.h net: wwan: iosm: fix dma_alloc_coherent incompatible pointer type 2022-11-28 11:31:59 +00:00
iosm_ipc_task_queue.c net: iosm: bottom half 2021-06-13 13:49:38 -07:00
iosm_ipc_task_queue.h net: iosm: bottom half 2021-06-13 13:49:38 -07:00
iosm_ipc_trace.c Revert "net: wwan: iosm: enable runtime pm support for 7560" 2023-10-18 11:08:52 +01:00
iosm_ipc_trace.h drivers: net: wwan: iosm: Fixed multiple typos in multiple files 2023-10-18 17:45:44 -07:00
iosm_ipc_uevent.c net: wwan: iosm: fix uevent reporting 2021-07-01 13:04:41 -07:00
iosm_ipc_uevent.h net: iosm: uevent support 2021-06-13 13:49:38 -07:00
iosm_ipc_wwan.c Revert "net: wwan: iosm: enable runtime pm support for 7560" 2023-10-18 11:08:52 +01:00
iosm_ipc_wwan.h net: wwan: iosm: removed unused function decl 2021-12-10 20:53:56 -08:00
Makefile net: wwan: make debugfs optional 2021-12-08 17:58:59 -08:00