USB: EHCI: fix divide-by-zero bug
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 12 Nov 2008 22:02:57 +0000 (17:02 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 13 Nov 2008 22:45:06 +0000 (14:45 -0800)
commit372dd6e8ed924e876f3beb598721e813ad7fa323
tree840e634b3ff67c0a337de02947dc1b7e1b36817b
parent67b2e029743a52670d77864723b4d0d40f7733b5
USB: EHCI: fix divide-by-zero bug

This patch (as1164) fixes a bug in the EHCI scheduler.  The interval
value it uses is already in linear format, not logarithmically coded.
The existing code can sometimes crash the system by trying to divide
by zero.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: David Brownell <david-b@pacbell.net>
Cc: Stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-sched.c