From: Yong Zhang Date: Sat, 19 Dec 2009 04:30:11 +0000 (-0800) Subject: mISDN: use DECLARE_COMPLETION_ONSTACK for non-constant completion X-Git-Tag: v2.6.33-rc2~40^2~6 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=01a1e7ec6c3769dc7c5fde23ebc253c6be5f68eb;p=~shefty%2Frdma-dev.git mISDN: use DECLARE_COMPLETION_ONSTACK for non-constant completion The _ONSTACK variant should be used for on-stack completion, otherwise it will break lockdep. Signed-off-by: Yong Zhang Acked-by: Karsten Keil Signed-off-by: David S. Miller --- diff --git a/drivers/isdn/mISDN/l1oip_core.c b/drivers/isdn/mISDN/l1oip_core.c index 7e5f30dbc0a..f1e8af54dff 100644 --- a/drivers/isdn/mISDN/l1oip_core.c +++ b/drivers/isdn/mISDN/l1oip_core.c @@ -661,7 +661,7 @@ l1oip_socket_thread(void *data) size_t recvbuf_size = 1500; int recvlen; struct socket *socket = NULL; - DECLARE_COMPLETION(wait); + DECLARE_COMPLETION_ONSTACK(wait); /* allocate buffer memory */ recvbuf = kmalloc(recvbuf_size, GFP_KERNEL);