[Trac #251] Timeout calculation causes divide by zero on stopped SD card.

Zarro Boogs per Child bugtracker at laptop.org
Tue Oct 31 04:25:37 EST 2006


#251: Timeout calculation causes divide by zero on stopped SD card.
--------------------+-------------------------------------------------------
 Reporter:  dwmw2   |       Owner:  blizzard
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:  BTest-1 
Component:  distro  |    Keywords:          
--------------------+-------------------------------------------------------
 When we're resetting SD we set card->host->ios.clock to zero. If requests
 are handled in that state, we divide zero in mmc_set_data_timeout().

 The attached patch possibly isn't the best fix -- we probably ought to be
 stopping the block queue altogether when we reset the host. But it at
 least avoids the oops.

-- 
Ticket URL: <http://dev.laptop.org/ticket/251>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list