Skip to content
Commit 601e6baa authored by Basavaraj Natikar's avatar Basavaraj Natikar Committed by Mauro Carvalho Chehab
Browse files

HID: amd_sfh: Fix potential NULL pointer dereference

The cl_data field of a privdata must be allocated and updated before
using in amd_sfh_hid_client_init() function.

Hence handling NULL pointer cl_data accordingly.

Fixes: d46ef750

 ("HID: amd_sfh: Fix potential NULL pointer dereference")
Signed-off-by: default avatarBasavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 38245d03
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment