From: Dan Carpenter Date: Thu, 29 Aug 2013 08:23:36 +0000 (-0300) Subject: [media] mx3-camera: locking cleanup in mx3_videobuf_queue() X-Git-Tag: v3.12-rc7~18^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7a69197a7e6aca22acdddef3f1bb691e239e6d1;p=pandora-kernel.git [media] mx3-camera: locking cleanup in mx3_videobuf_queue() Smatch complains about the locking here because we mix spin_lock_irq() with spin_lock_irqsave() in an unusual way. According to Smatch, it's not always clear if the IRQs are enabled or disabled when we return. It turns out this function is always called with IRQs enabled and we can just use spin_lock_irq(). It's called from __enqueue_in_driver(). Signed-off-by: Dan Carpenter Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed