We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4856380 commit 61712c9Copy full SHA for 61712c9
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
@@ -1078,7 +1078,6 @@ r535_gsp_rpc_set_registry(struct nvkm_gsp *gsp)
1078
if (IS_ERR(rpc))
1079
return PTR_ERR(rpc);
1080
1081
- rpc->size = sizeof(*rpc);
1082
rpc->numEntries = NV_GSP_REG_NUM_ENTRIES;
1083
1084
str_offset = offsetof(typeof(*rpc), entries[NV_GSP_REG_NUM_ENTRIES]);
@@ -1094,6 +1093,7 @@ r535_gsp_rpc_set_registry(struct nvkm_gsp *gsp)
1094
1093
strings += name_len;
1095
str_offset += name_len;
1096
}
+ rpc->size = str_offset;
1097
1098
return nvkm_gsp_rpc_wr(gsp, rpc, false);
1099
0 commit comments