From: David Woodhouse Date: Wed, 16 Dec 2009 03:27:20 +0000 (+0000) Subject: jffs2: Fix long-standing bug with symlink garbage collection. X-Git-Tag: v2.6.27.42~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78ba3f31ee0e1adaa141ab4cafac9df53c6c020a;p=pandora-kernel.git jffs2: Fix long-standing bug with symlink garbage collection. commit 2e16cfca6e17ae37ae21feca080a6f2eca9087dc upstream. Ever since jffs2_garbage_collect_metadata() was first half-written in February 2001, it's been broken on architectures where 'char' is signed. When garbage collecting a symlink with target length above 127, the payload length would end up negative, causing interesting and bad things to happen. Signed-off-by: David Woodhouse Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed