drm/i915: use __GFP_RETRY_MAYFAIL
[platform/kernel/linux-rpi.git] / drivers / gpu / drm / i915 / i915_gem.c
index 7dcac3b..969bac8 100644 (file)
@@ -2434,8 +2434,9 @@ rebuild_st:
                                 * again with !__GFP_NORETRY. However, we still
                                 * want to fail this allocation rather than
                                 * trigger the out-of-memory killer and for
-                                * this we want the future __GFP_MAYFAIL.
+                                * this we want __GFP_RETRY_MAYFAIL.
                                 */
+                               gfp |= __GFP_RETRY_MAYFAIL;
                        }
                } while (1);