]> asedeno.scripts.mit.edu Git - linux.git/commit
coresight: funnel: Fix missing spin_lock_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 18 Nov 2019 18:52:06 +0000 (11:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Nov 2019 18:18:15 +0000 (19:18 +0100)
commit9def5dc10d3e21cf7673731be21224b6cc0eb16a
tree957a6d0e47d349921ddb8a615ec98bcb4a54296f
parent7a7ebfa85f4fac349f3ab219538c44efe18b0cf6
coresight: funnel: 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.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Tested-by: Yabin Cui <yabinc@google.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20191118185207.30441-2-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-funnel.c