[PATCH] generic_serial.c portability fix
commit376b07691ec54a44925b4fee024c089b8b7b6616
authorAlexander Viro <viro@www.linux.org.uk>
Mon, 4 Apr 2005 01:06:05 +0000 (3 18:06 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 4 Apr 2005 01:06:05 +0000 (3 18:06 -0700)
treeaf6e568562098b2065f6a5ac97d64dfc65b98d8f
parent1fa6bac57b20c8250874387bdd9df6b8fe8340d3
[PATCH] generic_serial.c portability fix

gs_wait_tx_flushed() should have its second argument (timeout) unsigned
long, not int.  One of the callers passes it MAX_SCHEDULE_TIMEOUT and
function itself compares argument with that value.  Since that's
LONG_MAX, we get breakage on all 64bit platforms.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
drivers/char/generic_serial.c