Patch "[media] rc: sunxi-cir: Initialize the spinlock properly" has been added to the 4.4-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
[media] rc: sunxi-cir: Initialize the spinlock properly
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
rc-sunxi-cir-initialize-the-spinlock-properly.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
768acf46e1320d6c41ed1b7c4952bab41c1cde79Mon Sep 17 00:00:00 2001
From: Chen-Yu Tsai <[email protected]>
Date: Tue, 22 Dec 2015 02:27:35 -0200
Subject: [media] rc: sunxi-cir: Initialize the spinlock properly
From: Chen-Yu Tsai <[email protected]>
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.
--- drivers/media/rc/sunxi-cir.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/media/rc/sunxi-cir.c +2 -0
@@ -153,6 +153,8 @@ static int sunxi_ir_probe(struct platforif (!ir)return -ENOMEM ; +spin_lock_init (&ir->ir_lock); +if (of_device_is_compatible (dn,"allwinner,sun5i-a13-ir" )) ir->fifo_size =64 ;else
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/rc-sunxi-cir-initialize-the-spinlock-properly.patch