https://github.com/torvalds/linux
Revision d2c89a4284ea4ecfba77c6f2d7d6f96d52e801e5 authored by Jeff Mahoney on 03 November 2006, 06:07:20 UTC, committed by Linus Torvalds on 03 November 2006, 20:27:58 UTC
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 <jeffm@suse.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent d3e5a93
History
Tip revision: d2c89a4284ea4ecfba77c6f2d7d6f96d52e801e5 authored by Jeff Mahoney on 03 November 2006, 06:07:20 UTC
[PATCH] reiserfs: reset errval after initializing bitmap cache
Tip revision: d2c89a4
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 542 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 88.2 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 73.8 KB
Makefile -rw-r--r-- 49.0 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top