diff options
| author | Yousef Alhouseen <alhouseenyousef@gmail.com> | 2026-06-29 18:05:17 +0200 |
|---|---|---|
| committer | Juergen Gross <jgross@suse.com> | 2026-07-01 09:51:41 +0200 |
| commit | 678d59219ce0ae883f04c96936222c6168ef1164 (patch) | |
| tree | 086ed47dd4612288f9de4e5a5caad1e812b8e9fa /drivers/gpu/nova-core/fsp/git@git.tavy.me:linux.git | |
| parent | 45ca1afe2fd14c04e37227e79d3f8455831d8408 (diff) | |
xen/front-pgdir-shbuf: free grant reference head on errors
grant_references() allocates a private grant-reference head before
claiming references for the page directory and, for guest-owned buffers,
the data pages. The success path frees the remaining head, but claim
failures and grant_refs_for_buffer() errors return immediately.
Unwind through a common exit path so the private grant-reference head is
released even when granting fails part-way through setup. The caller
still tears down any references already stored in buf->grefs.
Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Message-ID: <20260629160517.29340-1-alhouseenyousef@gmail.com>
Diffstat (limited to 'drivers/gpu/nova-core/fsp/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
