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
History
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
File Mode Size
libfdt
.gitignore -rw-r--r-- 54 bytes
Makefile -rw-r--r-- 1.0 KB
Makefile.dtc -rw-r--r-- 372 bytes
checks.c -rw-r--r-- 20.1 KB
data.c -rw-r--r-- 5.2 KB
dtc-lexer.l -rw-r--r-- 6.3 KB
dtc-lexer.lex.c_shipped -rw-r--r-- 58.4 KB
dtc-parser.tab.c_shipped -rw-r--r-- 69.1 KB
dtc-parser.tab.h_shipped -rw-r--r-- 3.1 KB
dtc-parser.y -rw-r--r-- 8.9 KB
dtc.c -rw-r--r-- 7.0 KB
dtc.h -rw-r--r-- 7.3 KB
fdtdump.c -rw-r--r-- 3.6 KB
fdtget.c -rw-r--r-- 8.6 KB
fdtput.c -rw-r--r-- 8.3 KB
flattree.c -rw-r--r-- 21.9 KB
fstree.c -rw-r--r-- 2.2 KB
livetree.c -rw-r--r-- 13.6 KB
srcpos.c -rw-r--r-- 7.3 KB
srcpos.h -rw-r--r-- 3.6 KB
treesource.c -rw-r--r-- 6.0 KB
update-dtc-source.sh -rwxr-xr-x 2.2 KB
util.c -rw-r--r-- 8.7 KB
util.h -rw-r--r-- 7.4 KB
version_gen.h -rw-r--r-- 42 bytes

back to top