[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZDjtUjTTTXPrmr8N@google.com>
Date: Thu, 13 Apr 2023 23:06:10 -0700
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Miaoqian Lin <linmq006@...il.com>
Cc: Florian Fainelli <f.fainelli@...il.com>,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@...adcom.com>,
Rob Herring <robh@...nel.org>, Eric Anholt <eric@...olt.net>,
Nicolas Saenz Julienne <nsaenz@...nel.org>,
linux-input@...r.kernel.org, linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] input: raspberrypi-ts: Fix refcount leak in
rpi_ts_probe
On Fri, Dec 23, 2022 at 11:46:53AM +0400, Miaoqian Lin wrote:
> rpi_firmware_get() take reference, we need to release it in error paths
> as well. Use devm_rpi_firmware_get() helper to handling the resources.
> Also remove the existing rpi_firmware_put().
>
> Fixes: 0b9f28fed3f7 ("Input: add official Raspberry Pi's touchscreen driver")
> Fixes: 3b8ddff780b7 ("input: raspberrypi-ts: Release firmware handle when not needed")
> Signed-off-by: Miaoqian Lin <linmq006@...il.com>
Applied, thank you.
--
Dmitry
Powered by blists - more mailing lists