Loading drivers/gpu/msm/kgsl_timeline.c +2 −2 Original line number Diff line number Diff line Loading @@ -23,14 +23,14 @@ struct kgsl_timeline_fence { }; struct dma_fence *kgsl_timelines_to_fence_array(struct kgsl_device *device, u64 timelines, u64 count, u64 usize, bool any) u64 timelines, u32 count, u64 usize, bool any) { void __user *uptr = u64_to_user_ptr(timelines); struct dma_fence_array *array; struct dma_fence **fences; int i, ret = 0; if (!count) if (!count || count > INT_MAX) return ERR_PTR(-EINVAL); fences = kcalloc(count, sizeof(*fences), Loading drivers/gpu/msm/kgsl_timeline.h +1 −1 Original line number Diff line number Diff line Loading @@ -108,6 +108,6 @@ static inline void kgsl_timeline_put(struct kgsl_timeline *timeline) * encapsulated timeline fences to expire. */ struct dma_fence *kgsl_timelines_to_fence_array(struct kgsl_device *device, u64 timelines, u64 count, u64 usize, bool any); u64 timelines, u32 count, u64 usize, bool any); #endif Loading
drivers/gpu/msm/kgsl_timeline.c +2 −2 Original line number Diff line number Diff line Loading @@ -23,14 +23,14 @@ struct kgsl_timeline_fence { }; struct dma_fence *kgsl_timelines_to_fence_array(struct kgsl_device *device, u64 timelines, u64 count, u64 usize, bool any) u64 timelines, u32 count, u64 usize, bool any) { void __user *uptr = u64_to_user_ptr(timelines); struct dma_fence_array *array; struct dma_fence **fences; int i, ret = 0; if (!count) if (!count || count > INT_MAX) return ERR_PTR(-EINVAL); fences = kcalloc(count, sizeof(*fences), Loading
drivers/gpu/msm/kgsl_timeline.h +1 −1 Original line number Diff line number Diff line Loading @@ -108,6 +108,6 @@ static inline void kgsl_timeline_put(struct kgsl_timeline *timeline) * encapsulated timeline fences to expire. */ struct dma_fence *kgsl_timelines_to_fence_array(struct kgsl_device *device, u64 timelines, u64 count, u64 usize, bool any); u64 timelines, u32 count, u64 usize, bool any); #endif