]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
Merge branch 'fsl-fman-fix-refcount-handling-of-fman-related-devices'
authorPaolo Abeni <pabeni@redhat.com>
Mon, 21 Oct 2024 08:50:18 +0000 (10:50 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 21 Oct 2024 08:50:18 +0000 (10:50 +0200)
Aleksandr Mishin says:

====================
fsl/fman: Fix refcount handling of fman-related devices

The series is intended to fix refcount handling for fman-related "struct
device" objects - the devices are not released upon driver removal or in
the error paths during probe. This leads to device reference leaks.

The device pointers are now saved to struct mac_device and properly handled
in the driver's probe and removal functions.

Originally reported by Simon Horman <horms@kernel.org>
(https://lore.kernel.org/all/20240702133651.GK598357@kernel.org/)

Compile tested only.
====================

Link: https://patch.msgid.link/20241015060122.25709-1-amishin@t-argos.ru
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Trivial merge