diff options
| author | Li RongQing <lirongqing@baidu.com> | 2026-07-01 19:36:08 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-08-19 06:38:46 -0400 |
| commit | 23ae56d9e74c122f95cae71ae3b9fc259fb88446 (patch) | |
| tree | 8bbd238fb14f915c28ff13ea549ec18e683bca53 /scripts/Makefile.thinlto | |
| parent | 74d7d137f4bb18cb4957d97667bdf988ee9ff918 (diff) | |
| download | linux-stable-23ae56d9e74c122f95cae71ae3b9fc259fb88446.tar.gz linux-stable-23ae56d9e74c122f95cae71ae3b9fc259fb88446.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
