]> git.baikalelectronics.ru Git - kernel.git/commit
drm: serialize access to list of debugfs files
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Wed, 9 Nov 2011 21:20:35 +0000 (22:20 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 11 Nov 2011 11:05:19 +0000 (11:05 +0000)
commitd9ede23f5f3574ccbc0b5b8e630df6aa0917d584
tree90a260a3a560e0f06398db84ebe3feb27d569128
parentfc58fae06f3905adff10129b713cc8a7bcafd464
drm: serialize access to list of debugfs files

Nouveau, when configured with debugfs, creates debugfs files for every
channel, so structure holding list of files needs to be protected from
simultaneous changes by multiple threads.

Without this patch it's possible to hit kernel oops in
drm_debugfs_remove_files just by running a couple of xterms with
looped glxinfo.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_debugfs.c
drivers/gpu/drm/i915/i915_debugfs.c
include/drm/drmP.h