From: Chen Gang Date: Thu, 27 Dec 2012 07:51:31 +0000 (+0800) Subject: drivers/tty/serial: extern function which for release resource, need check pointer... X-Git-Tag: v3.9-rc1~125^2~96 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b342dd512f7af0e0e14e29c3e1f863150cfc46ff;p=pandora-kernel.git drivers/tty/serial: extern function which for release resource, need check pointer, before free it for extern function uart_remove_one_port: need check pointer whether be NULL, before the main work. just like what the other extern function uart_add_one_port has done. uart_add_one_port and uart_remove_one_port are pair information: for the callers (such as drivers/tty/serial/jsm: jsm_tty.c, jsm_driver.c) they realy assume that: they still can call uart_remove_one_port, after uart_add_one_port failed we (as an extern function), have to understand it (just like kfree). Signed-off-by: Chen Gang Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed