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.3-rc1~117^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e57e0d8e818512047fe379157c3f77f1b9fabffb;p=pandora-kernel.git UBI: fix use-after-free on error path 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 Cc: stable@kernel.org [v2.6.23+] Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed