From: Dan Carpenter Date: Mon, 10 Jan 2011 17:10:44 +0000 (-0500) Subject: ext4: test the correct variable in ext4_init_pageio() X-Git-Tag: 2.1b_release~5880^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13195184a8bc119dbd2f905db325a453047971cb;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git ext4: test the correct 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. Signed-off-by: Dan Carpenter Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c index 0f5dfe0..7270dcf 100644 --- a/fs/ext4/page-io.c +++ b/fs/ext4/page-io.c @@ -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; }