diff mbox

hidinput: kernel oops in out_cleanup in function hidinput_connect

Message ID 1297780870-4006-1-git-send-email-benjamin.tissoires@enac.fr (mailing list archive)
State Accepted
Commit d9236303d0b7ba8bbaeb6adbbf088c3fe2a9ab9e
Headers show

Commit Message

Benjamin Tissoires Feb. 15, 2011, 2:41 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 7f552bf..f53911d 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -928,6 +928,7 @@  int hidinput_connect(struct hid_device *hid, unsigned int force)
 	return 0;
 
 out_cleanup:
+	list_del(&hidinput->list);
 	input_free_device(hidinput->input);
 	kfree(hidinput);
 out_unwind: