Skip to content
Commit a4eb490a authored by Arvind Yadav's avatar Arvind Yadav Committed by Jiri Kosina
Browse files

HID: intel-ish-hid: use put_device() instead of kfree()



Never directly free @dev after calling device_register(), even
if it returned an error. Always use put_device() to give up the
reference initialized.

Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 749ab300
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