netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] dcbnl : Fix lock initialization
@ 2014-11-06 18:09 Anish Bhatt
  2014-11-06 19:03 ` John Fastabend
  0 siblings, 1 reply; 5+ messages in thread
From: Anish Bhatt @ 2014-11-06 18:09 UTC (permalink / raw)
  To: netdev
  Cc: davem, john.r.fastabend, ying.xue, jeffrey.t.kirsher, ebiederm,
	Anish Bhatt

dcb_lock was being used uninitialized in dcbnl and is infact missing
 initialization code. Fixed

Signed-off-by: Anish Bhatt <anish@chelsio.com>
---
 net/dcb/dcbnl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c
index ca11d28..7bc44e1 100644
--- a/net/dcb/dcbnl.c
+++ b/net/dcb/dcbnl.c
@@ -1914,6 +1914,8 @@ static int __init dcbnl_init(void)
 {
 	INIT_LIST_HEAD(&dcb_app_list);
 
+	spin_lock_init(&dcb_lock);
+
 	rtnl_register(PF_UNSPEC, RTM_GETDCB, dcb_doit, NULL, NULL);
 	rtnl_register(PF_UNSPEC, RTM_SETDCB, dcb_doit, NULL, NULL);
 
-- 
2.1.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-06 20:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-06 18:09 [PATCH net] dcbnl : Fix lock initialization Anish Bhatt
2014-11-06 19:03 ` John Fastabend
2014-11-06 19:12   ` Anish Bhatt
2014-11-06 20:16     ` John Fastabend
2014-11-06 20:19       ` Anish Bhatt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).