diff options
author | Chia-I Wu <[email protected]> | 2015-06-19 23:29:32 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-06-20 11:13:20 +0800 |
commit | 73f0d6d22db21f1fa553d8a26687edc5083e3c23 (patch) | |
tree | ae74badd1fd15aa60a5d03caed76dd6e04700276 /src/gallium/drivers/ilo | |
parent | aa3ec8bc465f8c82cb38e0ed067dbdd9122dbd44 (diff) |
ilo: fix a buffer overrun
Add missing parentheses in SURFTYPE_NULL initialization.
Diffstat (limited to 'src/gallium/drivers/ilo')
-rw-r--r-- | src/gallium/drivers/ilo/core/ilo_state_surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/core/ilo_state_surface.c b/src/gallium/drivers/ilo/core/ilo_state_surface.c index be7225b7bc4..5be9f8f6270 100644 --- a/src/gallium/drivers/ilo/core/ilo_state_surface.c +++ b/src/gallium/drivers/ilo/core/ilo_state_surface.c @@ -89,7 +89,7 @@ surface_set_gen7_null_SURFACE_STATE(struct ilo_state_surface *surf, STATIC_ASSERT(ARRAY_SIZE(surf->surface) >= 13); surf->surface[0] = dw0; memset(&surf->surface[1], 0, sizeof(uint32_t) * - ((ilo_dev_gen(dev) >= ILO_GEN(8)) ? 13 : 8) - 1); + (((ilo_dev_gen(dev) >= ILO_GEN(8)) ? 13 : 8) - 1)); return true; } |