commit | 97b9b7dc7722dc78d46046fc7a0dd0264832327f | [log] [tgz] |
---|---|---|
author | Vladimir Zapolskiy <vz@mleia.com> | Mon Apr 25 15:53:31 2016 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Apr 26 14:50:02 2016 -0700 |
tree | f4ce1389ae6fefe5a3c5e51b364a87955ab3e732 | |
parent | f551e13529833e052f75ec628a8af7b034af20f9 [diff] |
usb: musb: jz4740: fix error check of usb_get_phy() The usb_get_phy() function returns either a valid pointer to phy or ERR_PTR() error, check for NULL always fails and may lead to oops on error path, fix this issue. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>