Re: [PATCH] HID: uclogic: Add NULL check in uclogic_input_configured
From: Markus Elfring
Date: Mon Mar 31 2025 - 13:07:01 EST
…
> 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