]> git.baikalelectronics.ru Git - kernel.git/commit
staging: dgnc: use tty_alloc_driver instead of kcalloc
authorDaeseok Youn <daeseok.youn@gmail.com>
Thu, 14 Apr 2016 03:30:13 +0000 (12:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 00:46:00 +0000 (17:46 -0700)
commit50f289a217cc343749ec24bb9f89c203195cc5d2
tree17adbb8560f51ce8690d60092a41f1a30bbf7c59
parentde75239f5b1816d4f63daefb92ee8ec4fecdeec0
staging: dgnc: use tty_alloc_driver instead of kcalloc

The tty_alloc_driver() can allocate memory for ttys and termios.
And also allocated memory will be released easily with
put_tty_driver() call.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_driver.h
drivers/staging/dgnc/dgnc_tty.c