Skip to content

Commit e5a340f

Browse files
virtuosogregkh
authored andcommitted
intel_th: msu: Fix an uninitialized mutex
Commit 615c164 ("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 <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Fixes: 615c164 ("intel_th: msu: Introduce buffer interface") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 87c0b9c commit e5a340f

File tree

1 file changed

+1
-1
lines changed
  • drivers/hwtracing/intel_th

1 file changed

+1
-1
lines changed

drivers/hwtracing/intel_th/msu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ struct msc {
164164
};
165165

166166
static LIST_HEAD(msu_buffer_list);
167-
static struct mutex msu_buffer_mutex;
167+
static DEFINE_MUTEX(msu_buffer_mutex);
168168

169169
/**
170170
* struct msu_buffer_entry - internal MSU buffer bookkeeping

0 commit comments

Comments
 (0)