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 7958c1b commit 18db77bCopy full SHA for 18db77b
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
@@ -1111,7 +1111,6 @@ r535_gsp_rpc_set_registry(struct nvkm_gsp *gsp)
1111
if (IS_ERR(rpc))
1112
return PTR_ERR(rpc);
1113
1114
- rpc->size = sizeof(*rpc);
1115
rpc->numEntries = NV_GSP_REG_NUM_ENTRIES;
1116
1117
str_offset = offsetof(typeof(*rpc), entries[NV_GSP_REG_NUM_ENTRIES]);
@@ -1127,6 +1126,7 @@ r535_gsp_rpc_set_registry(struct nvkm_gsp *gsp)
1127
1126
strings += name_len;
1128
str_offset += name_len;
1129
}
+ rpc->size = str_offset;
1130
1131
return nvkm_gsp_rpc_wr(gsp, rpc, false);
1132
0 commit comments