Print this page
5253 kmem_alloc/kmem_zalloc won't fail with KM_SLEEP
5254 getrbuf won't fail with KM_SLEEP

@@ -2451,14 +2451,10 @@
         if (obj_priv->page_list)
                 return 0;
         pgcnt_t np = btop(obj->size);
 
         obj_priv->page_list = kmem_zalloc(np * sizeof(caddr_t), KM_SLEEP);
-        if (obj_priv->page_list == NULL) {
-                DRM_ERROR("Faled to allocate page list\n");
-                return ENOMEM;
-        }
 
         for (i = 0, va = obj->kaddr; i < np; i++, va += PAGESIZE) {
                 obj_priv->page_list[i] = va;
         }
         return 0;