diff options
author | Yong Zhang <yong.zhang0@gmail.com> | 2009-12-18 23:30:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-18 23:30:11 -0500 |
commit | 01a1e7ec6c3769dc7c5fde23ebc253c6be5f68eb (patch) | |
tree | 0676c75d19f393194c0053af06b5aa95f6bfe388 /drivers | |
parent | 4529819c45161e4a119134f56ef504e69420bc98 (diff) |
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 <yong.zhang0@gmail.com>
Acked-by: Karsten Keil <keil@b1-systems.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/isdn/mISDN/l1oip_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/mISDN/l1oip_core.c b/drivers/isdn/mISDN/l1oip_core.c index 7e5f30dbc0a0..f1e8af54dff0 100644 --- a/drivers/isdn/mISDN/l1oip_core.c +++ b/drivers/isdn/mISDN/l1oip_core.c | |||
@@ -661,7 +661,7 @@ l1oip_socket_thread(void *data) | |||
661 | size_t recvbuf_size = 1500; | 661 | size_t recvbuf_size = 1500; |
662 | int recvlen; | 662 | int recvlen; |
663 | struct socket *socket = NULL; | 663 | struct socket *socket = NULL; |
664 | DECLARE_COMPLETION(wait); | 664 | DECLARE_COMPLETION_ONSTACK(wait); |
665 | 665 | ||
666 | /* allocate buffer memory */ | 666 | /* allocate buffer memory */ |
667 | recvbuf = kmalloc(recvbuf_size, GFP_KERNEL); | 667 | recvbuf = kmalloc(recvbuf_size, GFP_KERNEL); |