[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <nycvar.YFH.7.76.2009010913050.4671@cbobk.fhfr.pm>
Date: Tue, 1 Sep 2020 09:13:20 +0200 (CEST)
From: Jiri Kosina <jikos@...nel.org>
To: Dinghao Liu <dinghao.liu@....edu.cn>
cc: kjlu@....edu, Benjamin Tissoires <benjamin.tissoires@...hat.com>,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] [v2] HID: elan: Fix memleak in elan_input_configured
On Mon, 31 Aug 2020, Dinghao Liu wrote:
> When input_mt_init_slots() fails, input should be freed
> to prevent memleak. When input_register_device() fails,
> we should call input_mt_destroy_slots() to free memory
> allocated by input_mt_init_slots().
>
> Signed-off-by: Dinghao Liu <dinghao.liu@....edu.cn>
> ---
>
> Changelog:
>
> v2: - Add input_mt_destroy_slots() on failure of
> input_register_device().
Thanks, applied.
--
Jiri Kosina
SUSE Labs
Powered by blists - more mailing lists