[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <p18p143o-p015-5036-16sr-ns479s8p998o@xreary.bet>
Date: Thu, 24 Apr 2025 12:12:36 +0200 (CEST)
From: Jiri Kosina <jikos@...nel.org>
To: Henry Martin <bsdhenrymartin@...il.com>
cc: Markus.Elfring@....de, bentiss@...nel.org, linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] HID: uclogic: Add NULL check in
uclogic_input_configured()
On Tue, 1 Apr 2025, Henry Martin wrote:
> devm_kasprintf() returns NULL when memory allocation fails. Currently,
> uclogic_input_configured() does not check for this case, which results
> in a NULL pointer dereference.
>
> Add NULL check after devm_kasprintf() to prevent this issue.
>
> Fixes: dd613a4e45f8 ("HID: uclogic: Correct devm device reference for hidinput input_dev name")
> Signed-off-by: Henry Martin <bsdhenrymartin@...il.com>
Applied, thanks.
--
Jiri Kosina
SUSE Labs
Powered by blists - more mailing lists