summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-04-29 11:44:32 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-04-29 12:24:12 +0200
commitb77f0765fdfb3a115e40effd890acb4674dc0989 (patch)
tree01fec81e4a91610342c2f7774ecab002f7526b82 /include/linux/stackprotector.h
parent1dcc0ceba05797dc6a696022509df6a180a78384 (diff)
downloadkernel-b77f0765fdfb3a115e40effd890acb4674dc0989.tar.gz
drm: Try to acquire modeset lock on panic or sysrq
Commit 62ff94a54921 "drm/crtc-helper: remove LOCKING from kerneldoc" causes drm_helper_crtc_in_use() and drm_helper_encoder_in_use() to complain loudly during a kernel panic or sysrq processing. This is caused by nobody acquiring the modeset lock in these code paths. This patch fixes this by trying to acquire the modeset lock for each FB helper that's forced to kernel mode. If the lock can't be acquired, it's likely that somebody else is performing a modeset. However, doing another modeset concurrently might make things even worse, so the safe option is to simply bail out in that case. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
ove all references to AVR32 architectureHans-Christian Noren Egtvedt 2017-01-13Doc: clarify that GPL is GPL v2, not v2+Sanjeev 2016-10-24docs: fix locations of several documents that got movedMauro Carvalho Chehab 2016-10-24docs-rst: create an user's manual bookMauro Carvalho Chehab