diff options
| author | Li RongQing <lirongqing@baidu.com> | 2026-07-01 19:36:08 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-08-03 23:08:18 -0400 |
| commit | c4f1daf41d1ef159c87e6ba75e814a2dfb1c0b4a (patch) | |
| tree | ced6c597248f69ec20fae6f11b6a90795872c1ed /scripts/Makefile.thinlto | |
| parent | 7150f59e1c90d676b46b8633c73e3a4a8778c733 (diff) | |
| download | linux-next-c4f1daf41d1ef159c87e6ba75e814a2dfb1c0b4a.tar.gz linux-next-c4f1daf41d1ef159c87e6ba75e814a2dfb1c0b4a.zip | |
vdpa/mlx5: fix wrong list iterated in add_direct_chain error path
In add_direct_chain(), newly allocated direct MR entries are added to
the local list 'tmp', which is spliced into mr->head only on success.
On the error path, the cleanup loop was incorrectly iterating over
mr->head instead of tmp.
Fix by iterating over 'tmp' in the err_alloc cleanup path.
Fixes: 94abbccdf291 ("vdpa/mlx5: Add shared memory registration code")
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Acked-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260701113608.1972-1-lirongqing@baidu.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
