usb: gadget: composite: Fix function used to free memory
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 4 Jan 2017 05:30:16 +0000 (06:30 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 03:01:29 +0000 (03:01 +0000)
commit6e6d194423aa51c521e1201104687dbd366ee50d
tree2f4dff1a99f39de3cd8f9b05041386ec3f946740
parent83184ac71083184ead81704f4257b70605884aa3
usb: gadget: composite: Fix function used to free memory

commit 990758c53eafe5a220a780ed12e7b4d51b3df032 upstream.

'cdev->os_desc_req' has been allocated with 'usb_ep_alloc_request()' so
'usb_ep_free_request()' should be used to free it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/composite.c