linux-sg2042/drivers/staging/fieldbus
Nicholas Mc Guire 3e2e9cf9ee staging: fieldbus: anybus-s: fix wait_for_completion_timeout return handling
wait_for_completion_timeout() returns unsigned long (0 on timeout or
remaining jiffies) not int. Assigning this return value to int may
theoretically overflow (though not in this case where TIMEOUT is
only HZ*2).

Fix this inconsistency by wrapping the wait_for_completion_timeout
into the if().

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Reviewed-by: Sven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-01 16:45:03 +02:00
..
Documentation
anybuss staging: fieldbus: anybus-s: fix wait_for_completion_timeout return handling 2019-05-01 16:45:03 +02:00
Kconfig
Makefile staging: fieldbus: anybus-s: support the Arcx anybus controller 2019-04-17 12:07:31 +02:00
TODO staging: fieldbus: add TODO 2019-04-17 12:07:31 +02:00
dev_core.c
fieldbus_dev.h