2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/rust/kernel/drm
Danilo Krummrich 360077278b rust: drm: don't pass the address of drm::Device to drm_dev_put()
In drm_dev_put() call in AlwaysRefCounted::dec_ref() we rely on struct
drm_device to be the first field in drm::Device, whereas everywhere
else we correctly obtain the address of the actual struct drm_device.

Analogous to the from_drm_device() helper, provide the
into_drm_device() helper in order to address this.

Fixes: 1e4b8896c0 ("rust: drm: add device abstraction")
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250731154919.4132-5-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2025-08-11 23:21:45 +02:00
..
gem Rust changes for v6.17 2025-08-03 13:49:10 -07:00
device.rs rust: drm: don't pass the address of drm::Device to drm_dev_put() 2025-08-11 23:21:45 +02:00
driver.rs Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
file.rs drm: rust: rename as_ref() to from_raw() for drm constructors 2025-07-11 16:30:30 +02:00
ioctl.rs drm: rust: rename as_ref() to from_raw() for drm constructors 2025-07-11 16:30:30 +02:00
mod.rs