Re: [PATCH 2/2] tcm_usb_gadget: Fix nexus leak + enabled attribute failure

2015-09-28 Thread Andrzej Pietrasiewicz
Hi Nicholas, W dniu 27.09.2015 o 05:16, Nicholas A. Bellinger pisze: From: Nicholas Bellinger This patch adds the missing tcm_usbg_drop_nexus() to properly release tcm_usbg_nexus memory during typical ->fabric_drop_tpg() callback shutdown. Also, fix up tcm_usbg_tpg_store_enable() return value

Re: [PATCH 2/2] tcm_usb_gadget: Fix nexus leak + enabled attribute failure

2015-09-27 Thread Felipe Balbi
Hi, On Sun, Sep 27, 2015 at 03:16:45AM +, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > This patch adds the missing tcm_usbg_drop_nexus() to properly > release tcm_usbg_nexus memory during typical ->fabric_drop_tpg() > callback shutdown. > > Also, fix up tcm_usbg_tpg_store_ena

[PATCH 2/2] tcm_usb_gadget: Fix nexus leak + enabled attribute failure

2015-09-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds the missing tcm_usbg_drop_nexus() to properly release tcm_usbg_nexus memory during typical ->fabric_drop_tpg() callback shutdown. Also, fix up tcm_usbg_tpg_store_enable() return value to propigate usbg_attach() failure up to user-space if no HDC is found.