diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-20 19:21:26 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-20 19:23:03 +0100 |
commit | 8deba38a3af34354680984186bdc80cfc6734138 (patch) | |
tree | d101ac1a74a2476360f97ad43483d6392709ae3a /lib/igt_sysfs.c | |
parent | 0e1f5e3e796ae383daeb8f1aa394ce5f030e7bb9 (diff) |
igt/vgem_basic: Exercise opening sysfs/debugfs
For fun, debugfs/.../names currently explodes, so lets capture that and
make sure that basic access to debugfs does no harm.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_sysfs.c')
-rw-r--r-- | lib/igt_sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_sysfs.c b/lib/igt_sysfs.c index 1b31d7af..61b94c64 100644 --- a/lib/igt_sysfs.c +++ b/lib/igt_sysfs.c @@ -179,6 +179,7 @@ char *igt_sysfs_get(int dir, const char *attr) if (!newbuf) break; + buf = newbuf; len *= 2; offset += ret; rem = len - offset - 1; |