]> git.baikalelectronics.ru Git - kernel.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)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 23 Dec 2015 17:51:40 +0000 (15:51 -0200)
commitd94668ef4016e65a332d73ea2192e15eea3c7d06
treee7a0399af73a151e9b64721236bfe0c2eb43290b
parented8e819fbf3bb0184ddee16a3b58ea014e656c4a
[media] rc: sunxi-cir: Initialize the spinlock properly

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: 4d116c2ad11d ("[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>
drivers/media/rc/sunxi-cir.c