diff options
Diffstat (limited to 'drivers/gpu')
-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 938e0abd..383bdca9 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c +++ b/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c | |||
@@ -1383,7 +1383,7 @@ static int gk20a_perfbuf_map(struct dbg_session_gk20a *dbg_s, | |||
1383 | 1383 | ||
1384 | /* perf output buffer may not cross a 4GB boundary */ | 1384 | /* perf output buffer may not cross a 4GB boundary */ |
1385 | virt_size = u64_lo32(args->mapping_size); | 1385 | virt_size = u64_lo32(args->mapping_size); |
1386 | if (u64_hi32(args->offset) != u64_hi32(args->offset + virt_size)) { | 1386 | if (u64_hi32(args->offset) != u64_hi32(args->offset + virt_size - 1)) { |
1387 | err = -EINVAL; | 1387 | err = -EINVAL; |
1388 | goto err_unmap; | 1388 | goto err_unmap; |
1389 | } | 1389 | } |