]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
rc: sunxi-cir: Initialize the spinlock properly
authorChen-Yu Tsai <wens@csie.org>
Tue, 22 Dec 2015 04:27:35 +0000 (02:27 -0200)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:22:45 +0000 (10:22 +0100)
commite5e7d8493e1dfdcbc9b0fae25fb769eb887e344e
tree287ff9ee87599df40405524cb3ba9347df318d63
parent32b9b145fba1ef6545cd6b8c9a785103a83be0ef
rc: sunxi-cir: Initialize the spinlock properly

BugLink: http://bugs.launchpad.net/bugs/1553179
commit 768acf46e1320d6c41ed1b7c4952bab41c1cde79 upstream.

The driver allocates the spinlock but fails to initialize it correctly.
The kernel reports a BUG indicating bad spinlock magic when spinlock
debugging is enabled.

Call spin_lock_init() on it to initialize it correctly.

Fixes: b4e3e59fb59c ("[media] rc: add sunxi-ir driver")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/media/rc/sunxi-cir.c