From: Julia Lawall Date: Tue, 28 Jul 2009 15:52:56 +0000 (+0200) Subject: Staging: dst: correct error-handling code X-Git-Tag: v2.6.32-rc1~668^2~266 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0e0507ad6ccbeaad1f6bfe5923bdc5110df8636;p=pandora-kernel.git Staging: dst: correct error-handling code dst_state_alloc 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 = dst_state_alloc(...) ... when != x = E ( * if (x == NULL || ...) S1 else S2 | * if (x == NULL && ...) S1 else S2 ) // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed