]> err.no Git - linux-2.6/commit
[PATCH] ext3: Wrong return value for EXT3_IOC_GROUP_ADD
authorGlauber de Oliveira Costa <glommer@br.ibm.com>
Mon, 28 Nov 2005 21:44:02 +0000 (13:44 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 28 Nov 2005 22:42:24 +0000 (14:42 -0800)
commitaa877b3dc9f2a1fdffac4ea36bee97c21db11a69
treefc27487488b60e403d55626068408844c0d47656
parentad09d583106fadfdf751926107cfe35fba6bdbd4
[PATCH] ext3: Wrong return value for EXT3_IOC_GROUP_ADD

This patch corrects the return value for the EXT3_IOC_GROUP_ADD in case it
fails due to the presence of multiple resizers at the filesystem.

The problem is a little bit more serious than a wrong return value in this
case, since the clause err=0 in the exit_journal path will lead to a call
to update_backups which in turns causes a NULL pointer dereference.

Signed-off-by: Glauber de Oliveira Costa <glommer@br.ibm.com>
Cc: "Stephen C. Tweedie" <sct@redhat.com>
Cc: Andreas Dilger <adilger@clusterfs.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext3/resize.c