usb: gadget: eem: fix echo command processing
authorYauheni Kaliuta <yauheni.kaliuta@nokia.com>
Tue, 5 Apr 2011 13:55:25 +0000 (16:55 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 13 Apr 2011 22:44:01 +0000 (15:44 -0700)
commit505d1f69ec4f8697a74711fb3a01ed151fda3834
tree5bbf4c66b5906d2e7f0031b42f1fa70d3763b7e9
parent5a9443f08c83c294c5c806a689c1184b27cb26b3
usb: gadget: eem: fix echo command processing

During processing of bunch of eem frames if "echo" command is found
skb is cloned and the cloned version should be used to send reply.
Unfortunately, the data of the original skb were actually used and
the cloned skb is never freed.

Using the cloned skb and freeing the skb in the completion callback
for usb request.

Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@nokia.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/f_eem.c