Input: xpad - fix resource reclaim in xpad_probe error path
authorAxel Lin <axel.lin@gmail.com>
Fri, 12 Nov 2010 05:47:42 +0000 (21:47 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 12 Nov 2010 06:02:23 +0000 (22:02 -0800)
commit161feb2417dd0c4324c2e8da24aaebd30a436d45
tree5f641e5d73b5235ff19021eeca505a19402c590f
parent6ff92a6db2083ecd1a8e2742d9397159fd880987
Input: xpad - fix resource reclaim in xpad_probe error path

Properly free the resources in error path by the reverse order of resource
allocation.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/joystick/xpad.c