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)
commit374d4106cb7565d00361b1d2d9e0b92e59f091d2
treea35c290d15e8c4f8ad8ee738d4376acf29f68385
parent3b05b9c36ddd01338e1352588f2ec1ea23f97d43
parent1dec67e0d9fbb087c2ab17bf1bd17208231c3bb1
Merge branch 'fsl-fman-fix-refcount-handling-of-fman-related-devices'

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>