Re: [PATCH] staging: dgnc: free memory allocated

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

 




On Monday 22 June 2015 10:45 PM, Dan Carpenter wrote:
> You should have CC'd Mark on these.  Use ./scripts/get_maintainer.pl
> 
> regards,
> dan carpenter
> 

Thanks Dan.I did use the get_maintainer.pl as I do always. I missed
Marks email ID. It was my mistake.Thanks for adding him.Greg has already
added this patch.I will ensure not to miss him next time.

> On Thu, Jun 18, 2015 at 01:27:28PM +0000, Gujulan Elango, Hari Prasath (H.) wrote:
>> From: Hari Prasath Gujulan Elango <hgujulan@xxxxxxxxxxx>
>>
>> The memory allocated in dgnc_tty_register() for two objects is not freed
>> anywhere.This patch addresses this by freeing the memory in
>> dgnc_tty_uninit.
>>
>> Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@xxxxxxxxxxx>
>> ---
>>  drivers/staging/dgnc/dgnc_tty.c | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
>> index 5c5c4b7..fbfe79a 100644
>> --- a/drivers/staging/dgnc/dgnc_tty.c
>> +++ b/drivers/staging/dgnc/dgnc_tty.c
>> @@ -422,8 +422,12 @@ void dgnc_tty_uninit(struct dgnc_board *brd)
>>  
>>  	kfree(brd->SerialDriver.ttys);
>>  	brd->SerialDriver.ttys = NULL;
>> +	kfree(brd->SerialDriver.termios);
>> +	brd->SerialDriver.termios = NULL;
>>  	kfree(brd->PrintDriver.ttys);
>>  	brd->PrintDriver.ttys = NULL;
>> +	kfree(brd->PrintDriver.termios);
>> +	brd->PrintDriver.termios = NULL;
>>  }
>>  
>>  /*=======================================================================
>> -- 
>> 1.9.1
>> _______________________________________________
>> devel mailing list
>> devel@xxxxxxxxxxxxxxxxxxxxxx
>> http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
> 


-- 
thanks & regards,
Hari Prasath
_______________________________________________
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