]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/gpu/drm/nouveau/nouveau_gem.c
treewide: use kv[mz]alloc* rather than opencoded variants
[mirror_ubuntu-artful-kernel.git] / drivers / gpu / drm / nouveau / nouveau_gem.c
index ca5397beb357d2a0635bbe385a19a99cc6989df8..2170534101cafda1e66ccdf0ee5262a62fdde7bf 100644 (file)
@@ -568,9 +568,7 @@ u_memcpya(uint64_t user, unsigned nmemb, unsigned size)
 
        size *= nmemb;
 
-       mem = kmalloc(size, GFP_KERNEL | __GFP_NOWARN);
-       if (!mem)
-               mem = vmalloc(size);
+       mem = kvmalloc(size, GFP_KERNEL);
        if (!mem)
                return ERR_PTR(-ENOMEM);