[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e87f2369-204f-431f-b434-bff4b8e78742@web.de>
Date: Mon, 31 Mar 2025 19:06:36 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Henry Martin <bsdhenrymartin@...il.com>, linux-input@...r.kernel.org
Cc: LKML <linux-kernel@...r.kernel.org>,
Benjamin Tissoires <bentiss@...nel.org>, Jiri Kosina <jikos@...nel.org>
Subject: Re: [PATCH] HID: uclogic: Add NULL check in uclogic_input_configured
…
> Add NULL check in uclogic_input_configured, to handle kernel NULL
> pointer dereference error.
Do you complete the error/exception handling also with the statement “return -ENOMEM;”?
By the way:
I suggest to simplify the handling of the condition “suffix”
with if/else branches a bit.
Regards,
Markus
Powered by blists - more mailing lists