Re: bluetooth adapters keep disconnecting with an "USB disconnect"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 18 Jan 2010 17:09:07 -0500 (EST)
Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:

> I just checked the source code, and it contains a bug.  The timestamp
> value is intended to be the number of microseconds since startup,
> modulo 4096 seconds.  That's so it will fit into 32 bits.
> 
> However in fact the calculation uses 65536 instead of 4096, and the
> resulting overflow causes odd behavior.  (The computation is done in
> hex instead of decimal, and the value used is 0xFFFF instead of 0xFFF.)

I'll fix this just as soon as I get to it.

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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux