On 11/16/20 3:17 PM, Zhang Qilong wrote: > In the error path, if midi is not null, we should to That "to" not needed here. > free the midi->id if necessary to prevent memleak. > > Fixes: b85e9de9e818d ("usb: gadget: f_midi: convert to new function interface with backward compatibility") > Reported-by: Hulk Robot <hulkci@xxxxxxxxxx> > Signed-off-by: Zhang Qilong <zhangqilong3@xxxxxxxxxx> [...] MBR, Sergei