tcm_usb_gadget: Fix nexus leak
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Dec 2015 15:06:14 +0000 (16:06 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 21 Dec 2015 03:40:19 +0000 (19:40 -0800)
commit4fef4e43558af8e880356c2893616bcee8b32867
tree214c6b39d4739408bea4afb3b7afe4401850c3b1
parenta0841d447ccc5685852b560a7b0919f4011ec111
tcm_usb_gadget: Fix nexus leak

This patch adds the missing tcm_usbg_drop_nexus() to properly
release tcm_usbg_nexus memory during typical ->fabric_drop_tpg()
callback shutdown.

Reported-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/usb/gadget/legacy/tcm_usb_gadget.c