]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/ttm: handle undefined printf arg evaluation order in debugfs
authorDave Airlie <airlied@redhat.com>
Tue, 3 Jun 2025 22:09:01 +0000 (08:09 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 4 Jun 2025 21:15:12 +0000 (07:15 +1000)
commitc87a3f4fac5b6fee3b3e6a82a12147da5b5df507
tree2cadb36405632df23261bf6c09b24a2b1346853d
parent685c407f168cb49a12cc703230d1e2d62767bfd2
drm/ttm: handle undefined printf arg evaluation order in debugfs

When you read this debugfs file it's isn't guaranteed the count
will happen before the scan, but I think the intent is that it does.

printf argument evaluation order is undefined.

Cc: Christian Koenig <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://lore.kernel.org/r/20250603220901.1217161-1-airlied@gmail.com
drivers/gpu/drm/ttm/ttm_pool.c