]> git.ipfire.org Git - thirdparty/linux.git/commit
dmaengine: bcm-sba-raid: fix device leak on probe
authorJohan Hovold <johan@kernel.org>
Mon, 17 Nov 2025 16:12:45 +0000 (17:12 +0100)
committerVinod Koul <vkoul@kernel.org>
Sun, 14 Dec 2025 09:17:24 +0000 (14:47 +0530)
commit7c3a46ebf15a9796b763a54272407fdbf945bed8
treecabeca30250d2cc0e3c08a303bf6e04a7c6052c2
parentb9074b2d7a230b6e28caa23165e9d8bc0677d333
dmaengine: bcm-sba-raid: fix device leak on probe

Make sure to drop the reference taken when looking up the mailbox device
during probe on probe failures and on driver unbind.

Fixes: 743e1c8ffe4e ("dmaengine: Add Broadcom SBA RAID driver")
Cc: stable@vger.kernel.org # 4.13
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20251117161258.10679-4-johan@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/bcm-sba-raid.c