You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
staging: dgnc: free memory allocated
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@visteon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d8a76d669a
commit
7f5ad01816
@@ -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;
|
||||
}
|
||||
|
||||
/*=======================================================================
|
||||
|
||||
Reference in New Issue
Block a user