1
0
Files
linux/drivers
Daeseok Youn 9140fcd655 staging: dgap: implement error handling in dgap_tty_register()
- alloc_tty_driver() is deprecated so it is changed to
tty_alloc_driver()
- Pointers which are allocated by alloc_tty_driver() and kzalloc()
can be NULL so it need to check NULL for them.
- If one of those is failed, it need to add proper handler for
avoiding memory leak.
- If both of drivers are registered normally, and
then set TRUE to dgap_major_serial{print}_registered. If one
of drivers is failed to register, leave a default value as
FALSE.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-24 02:09:06 +09:00
..
2014-05-16 23:43:56 +02:00
2014-05-22 23:27:17 +09:00
2014-04-08 13:27:40 +02:00
2014-05-22 23:27:17 +09:00
2014-04-16 12:28:47 -07:00
2014-04-24 12:53:38 -07:00
2014-04-18 16:40:08 -07:00
2014-05-17 15:49:40 -07:00
2014-05-22 23:27:17 +09:00
2014-04-16 14:07:51 -07:00