From: Peter Hurley Date: Fri, 5 Aug 2011 14:51:50 +0000 (-0400) Subject: Bluetooth: hidp: Only free input device if failed register X-Git-Tag: v3.1-rc5~12^2~6^2~9^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=615aedd6e5add8104f031b0d547285652d04d330;p=pandora-kernel.git 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: Peter Hurley Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed