diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-12-13 18:48:21 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-12-19 15:11:44 +0200 |
commit | fec5cbad4a77d680da5ebb7b0dfd49b737dcc47f (patch) | |
tree | d4a384aefa9649ffdde1e743623308ef10f4ebf4 /tests/kms_cursor_legacy.c | |
parent | 107283ee6f26fdcc847e77a250e4cc29f24333ad (diff) |
lib/debugfs: Check if debufs is already mounted before attempting to mount it
mount("/sys/kernel/debug") will return an error if something is already
mounted there. So let's check for that before calling mount(). This
allows many of the tools (eg. intel_reg) to work even when no drm
drivers are loaded since the earlier "/sys/kernel/debug/dri" & co.
path checks will fail in that case and we will fall back to attempting
to mount debugfs ourselves.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_cursor_legacy.c')
0 files changed, 0 insertions, 0 deletions