Re: [PATCH] HID: Add NULL check in winwing_init_led

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 14 Nov 2024, Charles Han wrote:

> devm_kasprintf() can return a NULL pointer on failure,but this
> returned value in winwing_init_led() is not checked.
> Add NULL check in winwing_init_led(), to handle kernel NULL
> pointer dereference error.
> 
> Fixes: 266c990debad ("HID: Add WinWing Orion2 throttle support")
> Signed-off-by: Charles Han <hanchunchao@xxxxxxxxxx>

Applied, thank you.

-- 
Jiri Kosina
SUSE Labs





[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux