From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65E3C2E22A3 for ; Fri, 21 Nov 2025 16:46:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763743616; cv=none; b=jC1/zN+UCRkJfEhKTFCSACg6ZkNZ7u3PZd0bhktzsYxzH/idalfBVEyBMurQMWKcVSjhBx46Rjd98ziASuCZjFr4M7P8shppd57gpYctIWRsKDEX0OfY61PScxdOiUm/WhRVOlHbbhIddNAmSrWb9oWTBmK/zyBMpt7+8Gz76jY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763743616; c=relaxed/simple; bh=qPrRrks3lkuVdZGFh9a/tHI2ithotZsYC8unMEeS+yE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=R/Jy7lOgLVh/jLF+hbN+hHHeVMdgcJ/hb8bnkiHnc2puvwxaDpBXMa84+BDCLM8xMi5r1HeTOCT4Ox7lHos7yjWRKUfvyhcURD29vpQTMIKT8j8quXXum70LS19ngIl+IT1JWmSl7QnnBWmV39yYc/5c1uDcJr9/oYERpgoPTVU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dMyPNpM6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dMyPNpM6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14376C116C6; Fri, 21 Nov 2025 16:46:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763743616; bh=qPrRrks3lkuVdZGFh9a/tHI2ithotZsYC8unMEeS+yE=; h=From:To:Cc:Subject:Date:From; b=dMyPNpM6MGeTG5ftxiY0uwzPEzBb4lRFchO+7Zubrys1wPadDYfCEWXRHJoRcLm3Y GZrBs6+WnMWiNySYi4Y1NeZNyZLzuwQAaIE91ag2x7zTSHnYrOUtNSD+E9A79+xnD4 orPk5TcySltBF8irtXWg9trQlRtjeFjX+G3S6wPCXWrfvkhBbAJJLl8eOcs6aFpqwq WHuNU5r13luDpaA++x6tLS7iKAgrZcJAZQr1agaPL50d9HNsTgU+EwUMtEFXSCweTa qgP59rQuoiWNB1xwuQqKRWUFG0Ne1COpnPqo1JJJNbkh054Mb+8wgvdcBY3Edv/iWn c4501c6oSvBjg== Received: from johan by xi.lan with local (Exim 4.98.2) (envelope-from ) id 1vMUHh-000000003ZN-1Arw; Fri, 21 Nov 2025 17:46:57 +0100 From: Johan Hovold To: Yong Wu , Krzysztof Kozlowski Cc: Matthias Brugger , AngeloGioacchino Del Regno , linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 0/3] memory: mtk-smi: fix device leaks on probe Date: Fri, 21 Nov 2025 17:46:21 +0100 Message-ID: <20251121164624.13685-1-johan@kernel.org> X-Mailer: git-send-email 2.51.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Make sure to drop the reference taken when looking up the SMI device during probe on late probe failure (e.g. probe deferral) and on driver unbind. Included is also a related cleanup. Johan Johan Hovold (3): memory: mtk-smi: fix device leaks on common probe memory: mtk-smi: fix device leak on larb probe memory: mtk-smi: clean up device link creation drivers/memory/mtk-smi.c | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) -- 2.51.2