https://github.com/torvalds/linux
Revision 30730c7f5943b3beace1e29f7f1476e05de3da14 authored by Adam Richter on 16 October 2015, 10:33:02 UTC, committed by Dave Airlie on 21 October 2015, 22:29:08 UTC
In Linux 4.3-rc5, there is an error case in drm_dp_get_branch_device
that returns without releasing mgr->lock, resulting a spew of kernel
messages about a kernel work function possibly having leaked a mutex
and presumably more serious adverse consequences later.  This patch
changes the error to "goto out" to unlock the mutex before returning.

[airlied: grabbed from drm-next as it fixes something we've seen]

Signed-off-by: Adam J. Richter <adam_richter2004@yahoo.com>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 1099f86
Raw File
Tip revision: 30730c7f5943b3beace1e29f7f1476e05de3da14 authored by Adam Richter on 16 October 2015, 10:33:02 UTC
drm: fix mutex leak in drm_dp_get_mst_branch_device
Tip revision: 30730c7
ld-version.sh
#!/usr/bin/awk -f
# extract linker version number from stdin and turn into single number
	{
	gsub(".*)", "");
	split($1,a, ".");
	print a[1]*10000000 + a[2]*100000 + a[3]*10000 + a[4]*100 + a[5];
	exit
	}
back to top