Re: [PATCH] usb: gadget: mass_storage: Fix freeing luns sysfs implementation

2015-07-31 Thread Michal Nazarewicz
On Fri, Jul 31 2015, Krzysztof Opasiak wrote: > Use device_is_registered() instad of sysfs flag to determine if > we should free sysfs representation of particular LUN. […] > > Signed-off-by: Krzysztof Opasiak Acked-by: Michal Nazarewicz > --- > drivers/usb/gadget/function/f_mass_storage.c |

[PATCH] usb: gadget: mass_storage: Fix freeing luns sysfs implementation

2015-07-31 Thread Krzysztof Opasiak
Use device_is_registered() instad of sysfs flag to determine if we should free sysfs representation of particular LUN. sysfs flag in fsg common determines if luns attributes should be exposed using sysfs. This flag is used when creating and freeing luns. Unfortunately there is no guarantee that th