The gadgetfs driver has had a module refcount bug in all recent kernels, from v3.10 up through present (last tag from Linus currently being v3.17-rc3). Embedded developers interested in using gadgetfs module with kernels 3.10 through 3.16 may wish to try this version of the patch rather than the one attached to the bug report (the only difference being paths: before or after the gadgetfs driver got shuffled into a "legacy" subdirectory).