Re: staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-05-03 Thread DaeSeok Youn
2016-05-03 17:15 GMT+09:00 Dan Carpenter <dan.carpen...@oracle.com>: > Hello Daeseok Youn, Hello Dan, > > The patch 60b3109e5e2d: "staging: dgnc: use tty_alloc_driver instead > of kcalloc" from Apr 14, 2016, leads to the following static checker > warning: &

[PATCH] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-04-13 Thread Daeseok Youn
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 --- drivers/staging/dgnc/dgnc_driver.h | 4 +- drivers/staging/dgnc/dgnc_tty.c| 144

Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-22 Thread DaeSeok Youn
2016-03-22 22:02 GMT+09:00 Greg KH : > On Tue, Mar 22, 2016 at 04:40:24PM +0900, DaeSeok Youn wrote: >> 2016-03-22 6:05 GMT+09:00 Greg KH : >> > On Mon, Mar 14, 2016 at 01:29:00PM +0900, Daeseok Youn wrote: >> >> the tty_alloc_driver() can

Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-22 Thread Greg KH
On Tue, Mar 22, 2016 at 04:40:24PM +0900, DaeSeok Youn wrote: > 2016-03-22 6:05 GMT+09:00 Greg KH : > > On Mon, Mar 14, 2016 at 01:29:00PM +0900, Daeseok Youn wrote: > >> the tty_alloc_driver() can allocate memory for ttys and termios. > >> And also it can release

Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-22 Thread DaeSeok Youn
2016-03-22 6:05 GMT+09:00 Greg KH : > On Mon, Mar 14, 2016 at 01:29:00PM +0900, Daeseok Youn wrote: >> the tty_alloc_driver() can allocate memory for ttys and termios. >> And also it can release allocated memory easly with using >> put_tty_driver(). >> >> Signed-off-by:

Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-21 Thread Greg KH
On Mon, Mar 14, 2016 at 01:29:00PM +0900, Daeseok Youn wrote: > the tty_alloc_driver() can allocate memory for ttys and termios. > And also it can release allocated memory easly with using > put_tty_driver(). > > Signed-off-by: Daeseok Youn But you broke the driver in

[PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-13 Thread Daeseok Youn
the tty_alloc_driver() can allocate memory for ttys and termios. And also it can release allocated memory easly with using put_tty_driver(). Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 86 +++-- 1 file changed, 31

Re: [PATCH 2/2 V2] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-11 Thread Greg KH
On Mon, Mar 07, 2016 at 04:55:38PM +0900, Daeseok Youn wrote: > the tty_alloc_driver() can allocate memory for ttys and termios. > And also it can release allocated memory easly with using > put_tty_driver(). Also needs to be rebased and resent. ___

[PATCH 2/2 V2] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-06 Thread Daeseok Youn
the tty_alloc_driver() can allocate memory for ttys and termios. And also it can release allocated memory easly with using put_tty_driver(). Signed-off-by: Daeseok Youn --- V2: removes appended email header on top of commit log drivers/staging/dgnc/dgnc_tty.c | 86

[PATCH 2/2 v2] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-01 Thread Daeseok Youn
the tty_alloc_driver() can allocate memory for ttys and termios. And also it can release allocated memory easly with using put_tty_driver(). Signed-off-by: Daeseok Youn --- v2 : typo in subject, changed from dgap to dgnc drivers/staging/dgnc/dgnc_tty.c | 86