diff options
author | Aleksandr Mishin <amishin@t-argos.ru> | 2024-06-04 10:25:00 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-06-06 10:15:14 +0200 |
commit | b0c9a26435413b81799047a7be53255640432547 (patch) | |
tree | afd0780f02f39bf810212176bd2ff12de07ade06 /net/unix/af_unix.c | |
parent | Merge branch 'intel-wired-lan-driver-updates-2024-05-29-ice-igc' (diff) | |
download | linux-b0c9a26435413b81799047a7be53255640432547.tar.xz linux-b0c9a26435413b81799047a7be53255640432547.zip |
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: 4dcd183fbd67 ("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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions