reiserfs: prepare_error_buf wrongly consumes va_arg
authorJeff Mahoney <jeffm@suse.com>
Mon, 30 Mar 2009 18:02:22 +0000 (14:02 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 30 Mar 2009 19:16:36 +0000 (12:16 -0700)
commitcacbe3d7ad3c0a345ca1ce7bf1ecb4c5bfe54d7b
tree853abddd05fe175e7aacf9cc7868b28e1bfa6e62
parent45b03d5e8e674eb6555b767e1c8eb40b671ff892
reiserfs: prepare_error_buf wrongly consumes va_arg

vsprintf will consume varargs on its own. Skipping them manually
results in garbage in the error buffer, or Oopses in the case of
pointers.

This patch removes the advancement and fixes a number of bugs where
crashes were observed as side effects of a regular error report.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/prints.c