This patch sets fix two memleaks before error returns. --- Changelog: v2 - add midi_free label in f_midi_alloc and use kfree in gadgetfs_fill_super. Zhang Qilong (2): usb: gadget: f_midi: Fix memleak in f_midi_alloc usb: gadget: Fix memleak in gadgetfs_fill_super drivers/usb/gadget/function/f_midi.c | 10 +++++++--- drivers/usb/gadget/legacy/inode.c | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) -- 2.25.4