Re: [PATCH 1/2] usb: gadget: f_midi: Fix memleak in f_midi_alloc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux