Skip to content
Snippets Groups Projects
Commit 45ab5166 authored by Charles Han's avatar Charles Han Committed by Jiri Kosina
Browse files

HID: winwing: Add NULL check in winwing_init_led()


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: 266c990d ("HID: Add WinWing Orion2 throttle support")
Signed-off-by: default avatarCharles Han <hanchunchao@inspur.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent 05c4ede6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment