]> git.hungrycats.org Git - linux/commit
[PATCH] Fix cyclades async driver timeout miscalculation
authorMarcelo Tosatti <marcelo.tosatti@cyclades.com>
Sat, 27 Mar 2004 04:56:57 +0000 (20:56 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 27 Mar 2004 04:56:57 +0000 (20:56 -0800)
commitfbd033bea0b9d025c5648f43b237097e6c45536d
tree6146df4acce328803d1a12f500689c8add6d786c
parent44fbe3d283010cbf2f057dfe496aae178387857a
[PATCH] Fix cyclades async driver timeout miscalculation

This fixes a problem where cy_wait_until_sent() miscalculates (calculate
-1 on a unsigned long) the "char_time" parameter passed to
schedule_timeout().

Fix that by making it a signed long, and checking for negative value.
drivers/char/cyclades.c