OSDN Git Service

serial: st-asc: Potential error pointer dereference
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Jul 2017 08:12:38 +0000 (11:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jul 2017 11:19:19 +0000 (13:19 +0200)
commit2b01bfaeb41e1563322448d9b392ac924cbf22ef
tree20b8d4ee07b8cb5daac89be69597a3bcf4ed0ed9
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
serial: st-asc: Potential error pointer dereference

It looks like we intended to return an error code here, because we
dereference "ascport->pinctrl" on the next lines.

Fixes: 6929cb00a501 ("serial: st-asc: Read in all Pinctrl states")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/st-asc.c