From: Hendrik Brueckner Date: Wed, 16 Sep 2009 04:37:25 +0000 (+0000) Subject: af_iucv: fix race in __iucv_sock_wait() X-Git-Tag: v2.6.32-rc1~657^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9973179aef2af88b6fe4cc1df7ced6fe7cec7d0;p=pandora-kernel.git af_iucv: fix race in __iucv_sock_wait() Moving prepare_to_wait before the condition to avoid a race between schedule_timeout and wake up. The race can appear during iucv_sock_connect() and iucv_callback_connack(). Signed-off-by: Hendrik Brueckner Signed-off-by: Ursula Braun Signed-off-by: David S. Miller --- Reading git-diff-tree failed