intel_th: msu: Fix an uninitialized mutex
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Mon, 28 Oct 2019 07:06:46 +0000 (09:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2019 14:01:23 +0000 (15:01 +0100)
commite5a340f770278f4de42e8bac19f2ebeb77ddfae4
tree95ee45e307f7da8780e5d5fbf8cf68cf15bfb0a4
parent87c0b9c79ec136ea76a14a88d675a746bc6a87f9
intel_th: msu: Fix an uninitialized mutex

Commit 615c164da0eb ("intel_th: msu: Introduce buffer interface") added a
mutex that it forgot to initialize, resulting in a lockdep splat.

Fix that by initializing the mutex statically.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Fixes: 615c164da0eb ("intel_th: msu: Introduce buffer interface")
Link: https://lore.kernel.org/r/20191028070651.9770-3-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/intel_th/msu.c