summaryrefslogtreecommitdiff
path: root/tools/lib/lockdep/tests/ABBA.c
blob: 07f0e29d548595ccb29413f08071bc79ab4a076e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <liblockdep/mutex.h>
#include "common.h"

void main(void)
{
	pthread_mutex_t a, b;

	pthread_mutex_init(&a, NULL);
	pthread_mutex_init(&b, NULL);

	LOCK_UNLOCK_2(a, b);
	LOCK_UNLOCK_2(b, a);
}
'0' selected='selected'>unified
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-01-03 01:14:27 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-01-04 11:08:13 +0100
commitaebe55c2d4b998741c0847ace1b4af47d73c763b (patch)
tree247be137e8262c931d0c505deea4cea997ba6542 /net/sched/Kconfig
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88 (diff)
drm: Clean up planes in atomic commit helper failure path
If waiting for fences fails for blocking commits, planes must be cleaned up before returning. Cc: stable@vger.kernel.org Fixes: f6ce410a59a4 ("drm/fence: allow fence waiting to be interrupted by userspace") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20170102231427.7192-1-laurent.pinchart@ideasonboard.com
Diffstat (limited to 'net/sched/Kconfig')