Linux 6.9-rc1
[linux-2.6-microblaze.git] / kernel / watch_queue.c
index 778b405..03b90d7 100644 (file)
@@ -270,7 +270,7 @@ long watch_queue_set_size(struct pipe_inode_info *pipe, unsigned int nr_notes)
                goto error;
 
        ret = -ENOMEM;
-       pages = kcalloc(sizeof(struct page *), nr_pages, GFP_KERNEL);
+       pages = kcalloc(nr_pages, sizeof(struct page *), GFP_KERNEL);
        if (!pages)
                goto error;