aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/usbhid/hiddev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hid/usbhid/hiddev.c b/drivers/hid/usbhid/hiddev.c
index babd65dd46ad..3ac320785fc5 100644
--- a/drivers/hid/usbhid/hiddev.c
+++ b/drivers/hid/usbhid/hiddev.c
@@ -436,8 +436,7 @@ static noinline int hiddev_ioctl_usage(struct hiddev *hiddev, unsigned int cmd,
436 if (copy_to_user(user_arg, uref, sizeof(*uref))) 436 if (copy_to_user(user_arg, uref, sizeof(*uref)))
437 goto fault; 437 goto fault;
438 438
439 kfree(uref_multi); 439 goto goodreturn;
440 return 0;
441 440
442 default: 441 default:
443 if (cmd != HIDIOCGUSAGE && 442 if (cmd != HIDIOCGUSAGE &&