diff options
| author | Haoxiang Li <haoxiang_li2024@163.com> | 2026-06-24 14:40:13 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-26 18:40:52 -0700 |
| commit | c63ee62a3c4ac1a1542f4c1a4b87e2f41df5a496 (patch) | |
| tree | 737e0c83df6bc0c0da9e19b65f319a23dea7aacd /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git | |
| parent | 96ca1e658ae459276292bd6d971ab5d8c7e0379a (diff) | |
net: liquidio: fix BAR resource leak on PF number failure
If cn23xx_get_pf_num() fails, the function returns without
unmapping either BAR. Unmap both BARs before returning from
the error path.
Found by manual code review.
Fixes: 0c45d7fe12c7 ("liquidio: fix use of pf in pass-through mode in a virtual machine")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Reviewed-by: Larysa Zaremba <larysa.zaremba@intel.com>
Link: https://patch.msgid.link/20260624064013.2809570-1-haoxiang_li2024@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
