]> asedeno.scripts.mit.edu Git - linux.git/commit
media: platform: Fix missing spin_lock_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 17 Dec 2018 12:14:35 +0000 (07:14 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 7 Jan 2019 18:54:01 +0000 (13:54 -0500)
commit07758747a2d7963593421b4e782b0f20a80f58d3
treef79fbd8c0e24bff3538980e771f88351b6966533
parent3eefa620d08dc6aa9323e409f1a307783c528004
media: platform: Fix missing spin_lock_init()

The driver allocates the spinlock but not initialize it.
Use spin_lock_init() on it to initialize it correctly.

This is detected by Coccinelle semantic patch.

Fixes: d2b4387f3bdf ("media: platform: Add Aspeed Video Engine driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/aspeed-video.c