nouveau/winsys: Fix an undefined shift

It was an integer shift twhich sometimes overflowed.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30703>
This commit is contained in:
Faith Ekstrand
2024-08-17 15:28:45 -05:00
committed by Marge Bot
parent 742364cc42
commit f2655b10c7
+1 -1
View File
@@ -141,7 +141,7 @@ nouveau_ws_context_create(struct nouveau_ws_device *dev,
if (ret)
goto fail_subchan;
base = (0xbeef + req.channel) << 16;
base = (uint32_t)(0xbeef + req.channel) << 16;
if (engines & NOUVEAU_WS_ENGINE_COPY) {
uint32_t obj_class = nouveau_ws_context_find_class(classes, 0xb5);