From: Anton Vorontsov Date: Tue, 19 Jun 2012 02:15:51 +0000 (-0700) Subject: pstore/ram: Fix error handling during przs allocation X-Git-Tag: v3.6-rc1~100^2~652 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90b58d96907e0a45555429c0d3a79c85cea4b9fc;p=pandora-kernel.git pstore/ram: Fix error handling during przs allocation persistent_ram_new() returns ERR_PTR() value on errors, so during freeing of the przs we should check for both NULL and IS_ERR() entries, otherwise bad things will happen. Signed-off-by: Anton Vorontsov Acked-by: Kees Cook Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed