net: irda: init spinlock after memcpy
authorDeepak Saxena <dsaxena@mvista.com>
Mon, 27 Jul 2009 17:49:44 +0000 (10:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2009 17:49:44 +0000 (10:49 -0700)
commit0cbb0a781a42f131e9c6836554f402cb85f8f38b
tree026518c552a42bafb33c8657de28753b666a9175
parent8bae1b2b13beb4cf4c0f119f97640503c2b74b0f
net: irda: init spinlock after memcpy

irttp_dup() copies a tsap_cb struct, but does not initialize the
spinlock in the new structure, which confuses lockdep.

Signed-off-by: Deepak Saxena <dsaxena@mvista.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/irttp.c