]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tty: serial: vt8500: fix return value check in vt8500_serial_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 2 Dec 2012 10:10:44 +0000 (05:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jan 2013 19:44:46 +0000 (11:44 -0800)
commit8d90fcdfc2ca59a7cac5c1907007b7a701219018
treedacb203e7eff67cee6b41ed0b5bde07d121dc088
parent9c9fc86f4ee49a91134f2946c4ced9c1499d0e7c
tty: serial: vt8500: fix return value check in vt8500_serial_probe()

commit a6dd114e16cbc4410049a90a8a67b967333d108d upstream.

In case of error, function of_clk_get() returns ERR_PTR()
and never returns NULL. The NULL test in the return value
check should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/vt8500_serial.c