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);
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
---