diff options
| author | Avi Weiss <thnkslprpt@gmail.com> | 2026-10-22 09:29:23 +0300 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-10-28 08:11:20 -0700 |
| commit | 2f61b9d1d54edf75a352c43eebe3804144b5d44e (patch) | |
| tree | cf934dcccbb48b578e1325afd2621815374b5e20 /tools/lib/python/kdoc/python_version.py | |
| parent | 9fb4adbc39751697b9fcf71e45bd5d5119c3f07c (diff) | |
nvmet: prevent double-free after metadata SGL allocation failure
If metadata SGL allocation fails, nvmet_req_alloc_sgls() frees
req->sg without clearing it. The RDMA error completion path later
frees the same scatterlist again.
Use nvmet_req_free_sgls() instead so that the scatterlist pointers
and counts are cleared before response cleanup.
Fixes: c6e3f13398123 ("nvmet: add metadata support for block devices")
Signed-off-by: Avi Weiss <thnkslprpt@gmail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
