From: Artem Bityutskiy Date: Thu, 5 Jan 2012 08:47:18 +0000 (+0200) Subject: UBI: fix use-after-free on error path X-Git-Tag: v3.2.2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50bc9144d4c0e15a6fcdc1b7a5accb7e2cd4aa11;p=pandora-kernel.git UBI: fix use-after-free on error path commit e57e0d8e818512047fe379157c3f77f1b9fabffb upstream. When we fail to erase a PEB, we free the corresponding erase entry object, but then re-schedule this object if the error code was something like -EAGAIN. Obviously, it is a bug to use the object after we have freed it. Reported-by: Emese Revfy Signed-off-by: Artem Bityutskiy Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed