From: Julia Lawall Date: Fri, 7 Aug 2009 17:51:33 +0000 (-0400) Subject: Btrfs: correct error-handling zlib error handling X-Git-Tag: v2.6.31-rc6~38^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60f2e8f8a07331097a57ec4abcdc680405579377;p=pandora-kernel.git Btrfs: correct error-handling zlib error handling find_zlib_workspace returns an ERR_PTR value in an error case instead of NULL. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @match exists@ expression x, E; statement S1, S2; @@ x = find_zlib_workspace(...) ... when != x = E ( * if (x == NULL || ...) S1 else S2 | * if (x == NULL && ...) S1 else S2 ) // Signed-off-by: Julia Lawall Signed-off-by: Chris Mason --- Reading git-diff-tree failed