diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c index f1d4da168..10aede1c0 100644 --- a/drivers/gpu/drm/drm_syncobj.c +++ b/drivers/gpu/drm/drm_syncobj.c @@ -1051,7 +1051,8 @@ static signed long drm_syncobj_array_wait_timeout(struct drm_syncobj **syncobjs, lockdep_assert_none_held_once(); } - points = kmalloc_array(count, sizeof(*points), GFP_KERNEL); + points = kmalloc_array(count, sizeof(*points), + GFP_KERNEL | __GFP_NOWARN); if (points == NULL) return -ENOMEM; @@ -1064,7 +1065,7 @@ static signed long drm_syncobj_array_wait_timeout(struct drm_syncobj **syncobjs, goto err_free_points; } - entries = kzalloc_objs(*entries, count); + entries = kzalloc_objs(*entries, count, GFP_KERNEL | __GFP_NOWARN); if (!entries) { timeout = -ENOMEM; goto err_free_points; @@ -1238,7 +1239,8 @@ static int drm_syncobj_array_find(struct drm_file *file_private, struct drm_syncobj **syncobjs; int ret; - handles = kmalloc_array(count_handles, sizeof(*handles), GFP_KERNEL); + handles = kmalloc_array(count_handles, sizeof(*handles), + GFP_KERNEL | __GFP_NOWARN); if (handles == NULL) return -ENOMEM; @@ -1248,7 +1250,8 @@ static int drm_syncobj_array_find(struct drm_file *file_private, goto err_free_handles; } - syncobjs = kmalloc_objs(*syncobjs, count_handles); + syncobjs = kmalloc_objs(*syncobjs, count_handles, + GFP_KERNEL | __GFP_NOWARN); if (syncobjs == NULL) { ret = -ENOMEM; goto err_free_handles; @@ -1573,7 +1576,7 @@ drm_syncobj_timeline_signal_ioctl(struct drm_device *dev, void *data, return ret; points = kmalloc_array(args->count_handles, sizeof(*points), - GFP_KERNEL); + GFP_KERNEL | __GFP_NOWARN); if (!points) { ret = -ENOMEM; goto out; @@ -1586,7 +1589,8 @@ drm_syncobj_timeline_signal_ioctl(struct drm_device *dev, void *data, goto err_points; } - chains = kmalloc_objs(*chains, args->count_handles); + chains = kmalloc_objs(*chains, args->count_handles, + GFP_KERNEL | __GFP_NOWARN); if (!chains) { ret = -ENOMEM; goto err_points;