Files
Guangshuo Li 5f43a2d35d EDAC/versalnet: Drop remote processor handle refcount on driver removal
mc_probe() acquires a reference to the remote processor with
rproc_get_by_phandle(), but mc_remove() does not release the reference.

rproc_shutdown() only balances the power reference acquired by rproc_boot();
it does not drop the device reference acquired by rproc_get_by_phandle(). As
a result, successful driver removal leaves the remoteproc reference
unbalanced.

Call rproc_put() during removal to release the reference acquired in
mc_probe().

  [ bp: Massage commit message. ]

Fixes: d5fe2fec6c ("EDAC: Add a driver for the AMD Versal NET DDR controller")
Signed-off-by: Guangshuo Li <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: Radhey Shyam Pandey <[email protected]>
Cc: [email protected]
Link: https://patch.msgid.link/[email protected]
2026-09-27 14:05:10 -07:00
..
2026-07-22 08:11:29 -07:00
2026-07-22 08:11:29 -07:00
2024-03-27 18:26:58 +01:00
2026-03-13 15:03:36 -07:00
…
…
2026-07-22 08:11:29 -07:00