[Intel-gfx] [PATCH] drm/i915/gt: Fixing the error handling of shmem_pin_map

Chris Wilson chris at chris-wilson.co.uk
Mon Dec 7 10:46:44 UTC 2020


Quoting Ramalingam C (2020-12-07 10:28:12)
> Since i was size_t, at error handling if i is 0, then --i >= 0.
> Making i as int.

The problem here is that size_t is 64b, but int 32b.
There's a patch by Colin King that does the trick.
-Chris


More information about the Intel-gfx mailing list