Re: [PATCH v2] staging: fwserial: fix resource leak

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

 



On 05/25/2015 04:22 PM, Vladimirs Ambrosovs wrote:
> This patch fixes the leak, which was present in fwserial driver in the
> init function. In case the tty driver allocation failed the function
> returned error, leaving debugfs entry in the filesystem.
> 
> To fix the issue additional error label was added, so that the code will
> jump to it in case of allocation failure, and free debugfs entries.

Thanks.

Reviewed-by: Peter Hurley <peter@xxxxxxxxxxxxxxxxxx>

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux