]> git.hungrycats.org Git - linux/commitdiff
[PATCH] isdn_ppp_ccp.c uses uninitialized spinlock
authorAndrew Morton <akpm@osdl.org>
Mon, 29 Dec 2003 13:53:49 +0000 (05:53 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 29 Dec 2003 13:53:49 +0000 (05:53 -0800)
From: Tonnerre Anklin <thunder@keepsake.ch>

This spinlock was used uninitialized. Gave me a lot of warnings.

drivers/isdn/i4l/isdn_ppp_ccp.c

index 6e559e89d01e91794e744f21200071d9602ffb77..182ba94236ca8b4b4f1b47004f3c06849d3aed49 100644 (file)
@@ -557,7 +557,7 @@ ippp_ccp_send_ccp(struct ippp_ccp *ccp, struct sk_buff *skb)
 }
 
 static LIST_HEAD(ipc_head);
-static spinlock_t ipc_head_lock;
+static spinlock_t ipc_head_lock = SPIN_LOCK_UNLOCKED;
 
 int
 ippp_ccp_set_compressor(struct ippp_ccp *ccp, int unit,