Adrian Chadd d2849f27bc Ensure that ta_pending doesn't overflow u_short by capping its value at USHRT_MAX.
If it overflows before the taskqueue can run, the task will be
re-added to the taskqueue and cause a loop in the task list.

Reported by:	Arnaud Lacombe <lacombar@gmail.com>
Submitted by:	Ryan Stone <rysto32@gmail.com>
Reviewed by:	jhb
Approved by:	re (kib)
MFC after:	1 day
2011-09-15 08:42:06 +00:00
..
2011-04-13 11:28:46 +00:00
2010-11-22 15:28:54 +00:00
2010-11-25 20:05:11 +00:00
2011-09-07 07:52:45 +00:00
2011-07-10 00:53:04 +00:00
2010-01-04 20:59:52 +00:00
2010-11-14 16:10:15 +00:00
2011-07-11 05:17:46 +00:00