diff options
| author | Eliot Courtney <ecourtney@nvidia.com> | 2026-04-23 15:36:52 +0300 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-05-01 17:39:08 +0300 |
| commit | 2e42a17b8f6bc3c0cd69d7556b588011d3ec2394 (patch) | |
| tree | 1dd49746ebe7a1269570d74fe65c275ecadab880 /scripts/checkstack.pl | |
| parent | 15e8bae5d930c91b8739a87d75db0a6efca3cb32 (diff) | |
| download | linux-2e42a17b8f6bc3c0cd69d7556b588011d3ec2394.tar.xz | |
rust: drm: gem: clean up GEM state in init failure case
Currently, if `drm_gem_object_init` fails, the object is freed without
any cleanup. Perform the cleanup in that case.
Cc: stable@vger.kernel.org
Fixes: c284d3e42338 ("rust: drm: gem: Add GEM object abstraction")
Signed-off-by: Eliot Courtney <ecourtney@nvidia.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Onur Özkan <work@onurozkan.dev>
Link: https://patch.msgid.link/20260423-fix-gem-1-v1-1-e12e35f7bba9@nvidia.com
[ Move safety comment closer to unsafe block to avoid a clippy warning.
- Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions
