From: Jeff Mahoney Date: Fri, 3 Nov 2006 06:07:20 +0000 (-0800) Subject: [PATCH] reiserfs: reset errval after initializing bitmap cache X-Git-Tag: v2.6.19-rc5~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2c89a4284ea4ecfba77c6f2d7d6f96d52e801e5;p=pandora-kernel.git [PATCH] reiserfs: reset errval after initializing bitmap cache Callers after reiserfs_init_bitmap_cache() expect errval to contain -EINVAL until much later. If a condition fails before errval is reset later, reiserfs_fill_super() will mistakenly return 0, causing an Oops in do_add_mount(). This patch resets errval to -EINVAL after the call. I view this as a temporary fix and real error codes should be used throughout reiserfs_fill_super(). Signed-off-by: Jeff Mahoney Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed