From: Felipe Balbi Date: Thu, 2 Jul 2015 03:03:09 +0000 (-0500) Subject: usb: dwc3: core: avoid NULL pointer dereference X-Git-Tag: omap-for-v4.3/fixes-merge-window~230^2~1^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43cacb03aabe62158d8e5da876054c7d48fc9963;p=pandora-kernel.git usb: dwc3: core: avoid NULL pointer dereference commit 3e10a2ce98d1 ("usb: dwc3: add hsphy_interface property") introduced a possible NULL pointer dereference because dwc->hsphy_interface can be NULL. In order to fix it, all we have to do is guard strncmp() against a NULL argument. Fixes: 3e10a2ce98d1 ("usb: dwc3: add hsphy_interface property") Tested-by: Murali Karicheri Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed