From: Jesper Juhl Date: Thu, 13 Jan 2011 01:00:27 +0000 (-0800) Subject: reiserfs: make sure va_end() is always called after va_start(). X-Git-Tag: v2.6.38-rc1~321 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=566538a6cf5bec260324dc37b6820dacd8631452;p=pandora-kernel.git reiserfs: make sure va_end() is always called after va_start(). A call to va_start() must always be followed by a call to va_end() in the same function. In fs/reiserfs/prints.c::print_block() this is not always the case. If 'bh' is NULL we'll return without calling va_end(). One could add a call to va_end() before the 'return' statement, but it's nicer to just move the call to va_start() after the test for 'bh' being NULL. Signed-off-by: Jesper Juhl Acked-by: Edward Shishkin Cc: Jeff Mahoney Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed