Re: [PATCH v4 1/2] staging: dgap: tty.c: adds error handing in tty driver allocations

2013-10-03 Thread Lidza Louina
On Thu, Oct 3, 2013 at 1:23 AM, Greg KH gre...@linuxfoundation.org wrote: On Tue, Oct 01, 2013 at 12:54:20PM -0400, Lidza Louina wrote: + return 0; + +err_unregister_serial: +tty_unregister_driver(brd-SerialDriver); +err_free_print_ttys: +kfree(brd-PrintDriver-ttys);

[PATCH v4 1/2] staging: dgap: tty.c: adds error handing in tty driver allocations

2013-10-01 Thread Lidza Louina
This patch adds error handling to the tty_driver allocations in dgap_tty_register. Now the code handles the possibility of an alloc_tty_driver, a tty_register_driver, and a brd-SerialDriver-ttys or brd-PrintDriver-ttys allocation failure. Signed-off-by: Lidza Louina lidza.lou...@gmail.com ---