pan/midgard: Bounds check lcra_restrict_range
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 23 Dec 2019 20:49:18 +0000 (15:49 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 24 Dec 2019 23:46:22 +0000 (23:46 +0000)
commit4e75d757244f7f0b727ff2eaaa06c94e805e8474
tree805f664c255c84c0460330e3fce1ed14a64bb940
parent0c3206379403c5b7242c65695b10abe607b4a19a
pan/midgard: Bounds check lcra_restrict_range

We may call it with sentinel values (~0 in particular) corresponding to
unused arguments; ignore these.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/lcra.c