diff options
Diffstat (limited to 'drivers/gpu/nvgpu/os')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/ioctl_dbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c b/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c index e7bb6700..ff4fcdca 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c +++ b/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c | |||
@@ -1568,7 +1568,7 @@ static int nvgpu_dbg_gpu_ioctl_access_fb_memory(struct dbg_session_gk20a *dbg_s, | |||
1568 | u64 access_limit_size = SZ_4K; | 1568 | u64 access_limit_size = SZ_4K; |
1569 | int err = 0; | 1569 | int err = 0; |
1570 | 1570 | ||
1571 | if ((args->offset & 3) || (!args->size)) | 1571 | if ((args->offset & 3) || (!args->size) || (args->size & 3)) |
1572 | return -EINVAL; | 1572 | return -EINVAL; |
1573 | 1573 | ||
1574 | dmabuf = dma_buf_get(args->dmabuf_fd); | 1574 | dmabuf = dma_buf_get(args->dmabuf_fd); |