nouveau/push: Fix a void pointer arithmetic bug

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Faith Ekstrand 2023-01-30 20:11:57 -06:00 committed by Marge Bot
parent 33ed4b9bc5
commit 9db0c9fb2d

View file

@ -113,7 +113,7 @@ nouveau_ws_push_space(struct nouveau_ws_push *push,
if (!bo)
return NULL;
void *map = nouveau_ws_bo_map(bo, NOUVEAU_WS_BO_RDWR);
uint32_t *map = nouveau_ws_bo_map(bo, NOUVEAU_WS_BO_RDWR);
if (!map)
goto fail_map;