Messages in this thread | | | Date | Fri, 4 Feb 2022 16:31:17 -0800 | Subject | Re: [PATCH v1 0/9] drivers: hv: dxgkrnl: Driver overview | From | Iouri Tarassov <> |
| |
On 1/25/2022 4:27 PM, Nathan Chancellor wrote: > Hi Iouri, > > On Wed, Jan 12, 2022 at 03:39:13PM -0800, Iouri Tarassov wrote: > > > drivers/hv/dxgkrnl/dxgvmbus.c: In function ‘dxgvmb_send_query_alloc_residency’: > drivers/hv/dxgkrnl/dxgvmbus.c:147:16: warning: array subscript ‘struct dxgvmbusmsg[0]’ is partly outside array bounds of ‘struct dxgvmbusmsgres[1]’ [-Warray-bounds] > 147 | if (msg->hdr && (char *)msg->hdr != msg->msg_on_stack) > | ~~~^~~~~ > drivers/hv/dxgkrnl/dxgvmbus.c:1882:31: note: while referencing ‘msg’ > 1882 | struct dxgvmbusmsgres msg = {.hdr = NULL}; > | ^~~
Hi Nathan,
I fixed the issue with the ioctls array.
Regarding the warning above, it looks like a compiler error. I do not see where the out of bounds access is. I tried GCC-11 version 11.2.0 and this warning is not there.
Thanks
Iouri
| |