]> git.baikalelectronics.ru Git - kernel.git/commit
HID: sony: Fix error handling bug when touchpad registration fails
authorRoderick Colenbrander <roderick.colenbrander@sony.com>
Fri, 9 Dec 2016 03:09:50 +0000 (19:09 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 19 Dec 2016 14:07:37 +0000 (15:07 +0100)
commitf96ccc15c78f9af60c6f90cb985a31c6e15a7e12
treea88edfafb46b6137f5faaa0ed18456bf31a59846
parent7fd6d620253238a640b25f5acfccc87c3ee931cd
HID: sony: Fix error handling bug when touchpad registration fails

The error handling code in sony_input_configured in general uses goto
based cleanup. Recently we migrated code from sony_probe to here, but
we didn't update the existing touchpad registration code, which was
already here to use the goto.

Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c