]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[media] rc: sunxi-cir: Initialize the spinlock properly
authorChen-Yu Tsai <wens@csie.org>
Tue, 22 Dec 2015 04:27:35 +0000 (02:27 -0200)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 1 Feb 2016 17:39:47 +0000 (12:39 -0500)
commit33c7c20d62a7916522628fbb45bb65cbc0b9f899
tree703f3378a3c19b9336da269f3fb60821ae71a451
parent4476dc677064d27c1fb6ff28a47eeac384e8ba64
[media] rc: sunxi-cir: Initialize the spinlock properly

[ Upstream commit 768acf46e1320d6c41ed1b7c4952bab41c1cde79 ]

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>
Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/media/rc/sunxi-cir.c