SVNews r322355

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-08-10 13:00:10 - r322355 by hselasky (Hans Petter Selasky)

Complete list of files affected by revision r322355:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/compat/linuxkpi/common/include/linux/wait.h  

Commit message:

Fixes for wait event in the LinuxKPI. These are regression issues
after r319757.

1) Correct the return value from __wait_event_common() from 1 to 0 in
case the timeout is specified as MAX_SCHEDULE_TIMEOUT. In the other
case __ret is zero and will be substituted in the last part of the
macro with the appropriate value before return.

2) Make sure the "timeout" argument is casted to "int" before
evaluating negativity. Else the signedness of a "long" might be
checked instead of the signedness of an integer.

3) The wait_event() function should not have a return value.

Found by: KrishnamRaju ErapaRaju <>
MFC after: 1 week
Sponsored by: Mellanox Technologies


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 13 ms, 1 file printed. Current time is 2018-03-21 10:51:17. All times are in UTC/GMT.