kernel - Add ts check to dotimeout_only()
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 19 Nov 2011 17:41:48 +0000 (09:41 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 19 Nov 2011 17:41:48 +0000 (09:41 -0800)
commit0c134065dad38df9b80fbf5fd377630f495ab314
tree2874e47bf86147c8a3a5773310cbfbb57767706a
parent739be60bf6ac8b23af2c538f35d8f503a234d194
kernel - Add ts check to dotimeout_only()

* We have to add a null-check before calling dotimeout_only().  When
  poll()/select() are called with a NULL timeout that means wait forever
  and does not mean a fixed delay.

Reported-by: YONETANI Tomokazu <y0n3t4n1@gmail.com>
sys/kern/sys_generic.c