Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: host: isp1362-hcd: fix missing break in switch

Add missing break statement to prevent the code for case C_HUB_OVER_CURRENT
from falling through to case C_HUB_LOCAL_POWER.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Gustavo A. R. Silva and committed by
Greg Kroah-Hartman
dc586a60 20a7f3ad

+1
+1
drivers/usb/host/isp1362-hcd.c
··· 1578 1578 spin_lock_irqsave(&isp1362_hcd->lock, flags); 1579 1579 isp1362_write_reg32(isp1362_hcd, HCRHSTATUS, RH_HS_OCIC); 1580 1580 spin_unlock_irqrestore(&isp1362_hcd->lock, flags); 1581 + break; 1581 1582 case C_HUB_LOCAL_POWER: 1582 1583 DBG(0, "C_HUB_LOCAL_POWER\n"); 1583 1584 break;