diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/sync_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/sync_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/sync_gk20a.c index af6af70e..b642981c 100644 --- a/drivers/gpu/nvgpu/gk20a/sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/sync_gk20a.c | |||
@@ -445,7 +445,7 @@ static int gk20a_sync_fill_driver_data(struct sync_pt *sync_pt, | |||
445 | { | 445 | { |
446 | struct gk20a_sync_pt_info info; | 446 | struct gk20a_sync_pt_info info; |
447 | 447 | ||
448 | if (size < sizeof(info)) | 448 | if (size < (int)sizeof(info)) |
449 | return -ENOMEM; | 449 | return -ENOMEM; |
450 | 450 | ||
451 | info.hw_op_ns = ktime_to_ns(gk20a_sync_pt_duration(sync_pt)); | 451 | info.hw_op_ns = ktime_to_ns(gk20a_sync_pt_duration(sync_pt)); |