From: Tzung-Bi Shih <tzungbi@kernel.org>
To: Yige Jiang <yigejiang86@gmail.com>
Cc: chrome-platform@lists.linux.dev,
Benson Leung <bleung@chromium.org>,
linux-kernel@vger.kernel.org, Nick Crews <ncrews@chromium.org>
Subject: Re: [PATCH v2] platform/chrome: wilco_ec: Fix device reference leak on open failure
Date: Fri, 6 Nov 2026 02:41:23 +0000 [thread overview]
Message-ID: <au0-Uz1NsgFP0788@google.com> (raw)
In-Reply-To: <20261105074709.55016-1-yigejiang86@gmail.com>
On Thu, Nov 05, 2026 at 03:47:09PM +0800, Yige Jiang wrote:
> telem_open() takes a reference to dev_data->dev before allocating
> the session. If that allocation fails, it returns -ENOMEM without
> dropping the reference. Since release is not called after a failed
> open, the device data remains pinned after removal.
>
> Take the device reference only after the session allocation succeeds,
> so that a failed open does not leave an unbalanced reference. The
> successful open path remains balanced by telem_release().
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next
[1/1] platform/chrome: wilco_ec: Fix device reference leak on open failure
commit: 80436896141ecca950125dec3f320b7aacc5038a
Thanks!
prev parent reply other threads:[~2026-11-06 2:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 7:47 Yige Jiang
2026-11-06 2:41 ` Tzung-Bi Shih [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=au0-Uz1NsgFP0788@google.com \
--to=tzungbi@kernel.org \
--cc=bleung@chromium.org \
--cc=chrome-platform@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=ncrews@chromium.org \
--cc=yigejiang86@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®