usb: dwc3: core: don't kfree() devm_kzalloc()'ed memory
authorFelipe Balbi <balbi@ti.com>
Thu, 8 Nov 2012 13:26:41 +0000 (15:26 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 8 Nov 2012 13:26:41 +0000 (15:26 +0200)
commite32672f0bc7ec8421aa8e580e9f2216d3bec2505
tree87c4143ebbbdf7451c9cf4b7f5382dac9bbe3ce6
parent7947699a4e0d960c36e01b01a4e518f35eea2265
usb: dwc3: core: don't kfree() devm_kzalloc()'ed memory

commit 380f0d2 (usb: dwc3: core: switch event
buffer allocation to devm_kzalloc()) was incomplete
leaving a trailing kfree(evt) in an error exit
path.

Fix this problem by removing the trailing kfree(evt).

Cc: Julia Lawall <julia.lawall@lip6.fr>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c