Skip to content
Commit 615aedd6 authored by Peter Hurley's avatar Peter Hurley Committed by Gustavo F. Padovan
Browse files

Bluetooth: hidp: Only free input device if failed register



When an hidp connection is added for a boot protocol input
device, only free the allocated device if device registration fails.
Subsequent failures should only unregister the device (the input
device api documents that unregister will also free the allocated
device).

Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 1c97e94c
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