media: au0828: Consolidate dmesg output
[linux-2.6-microblaze.git] / lib / scatterlist.c
index 9a4992d..0a482ef 100644 (file)
@@ -595,7 +595,7 @@ struct scatterlist *sgl_alloc_order(unsigned long long length,
                elem_len = min_t(u64, length, PAGE_SIZE << order);
                page = alloc_pages(gfp, order);
                if (!page) {
-                       sgl_free(sgl);
+                       sgl_free_order(sgl, order);
                        return NULL;
                }