Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 641d2f63 authored by Vegard Nossum's avatar Vegard Nossum Committed by Ingo Molnar
Browse files

trace: introduce missing mutex_unlock()

Impact: fix tracing buffer mutex leak in case of allocation failure

This error was spotted by this semantic patch:

  http://www.emn.fr/x-info/coccinelle/mut.html



It looks correct as far as I can tell. Please review.

Signed-off-by: default avatarVegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 5177dc3f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -617,6 +617,7 @@ int ring_buffer_resize(struct ring_buffer *buffer, unsigned long size)
		list_del_init(&page->list);
		free_buffer_page(page);
	}
	mutex_unlock(&buffer->mutex);
	return -ENOMEM;
}