Skip to contentSkip to conversation

ext4: testing the wrong variable in ext4_init_pageio()

PATCH In review Dan Carpenter 2 participants 2 messages Dec 23, 2010 – Dec 24, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext4: testing the wrong variable in ext4_init_pageio()

This is a copy and paste error. The intent was to check "io_page_cachep". We tested "io_page_cachep" earlier.

fs/ext4/page-io.c +1 -1
index beacce1..857abc6 100644
@@ -44,7 +44,7 @@ int __init ext4_init_pageio(void)
 	if (io_page_cachep = NULL)
 		return -ENOMEM;
 	io_end_cachep = KMEM_CACHE(ext4_io_end, SLAB_RECLAIM_ACCOUNT);
-	if (io_page_cachep = NULL) {
+	if (io_end_cachep = NULL) {
 		kmem_cache_destroy(io_page_cachep);
 		return -ENOMEM;
 	}
maintainer
#1 lore raw
Quoted 4 lines · Dan Carpenter

This is a copy and paste error. The intent was to check "io_page_cachep". We tested "io_page_cachep" earlier.

Thanks, added to the ext4 patch queue.

- Ted