On 13.04.2017 13:27, Ralph Sennhauser wrote:
On Thu, 13 Apr 2017 09:48:49 +0300
Mathias Nyman <[email protected]> wrote:

commit a6ff6cbf1fab ("usb: xhci: Add helper function
xhci_set_power_on().") created a helper to control port power that
needs to be called with xhci->lock held and interrupts disabled.
It relased the lock with spin_unlock_irqerstore using a new zero flag
variable instead of the origial flag from spin_lock_irqsave.
This regression triggered a static checker warning about bogus flags,
and a null pointer dereference on armada-385.

Fix it by passing a pointer to the correct flags and using it instead

Fixes: a6ff6cbf1fab ("usb: xhci: Add helper function
xhci_set_power_on().") Cc: Guoqing Zhang <[email protected]>
Signed-off-by: Mathias Nyman <[email protected]>
---

Hi Mathias,

This patch fixes the issue for me on armada-385. So

Reported-by: Ralph Sennhauser <[email protected]>
Tested-by: Ralph Sennhauser <[email protected]>

Great, Thanks
I'll add those tags and check if Greg can take it usb-next still

-Mathias


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to