Tag: d67b1b03254c501fef371b0e5916c94a52bfc2c5

fs/xfs: Correct NULL test

Author: Julia Lawall <julia@diku.dk> Test the value that was just allocated rather than the previously tested one. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ expression *x; expression e; identifier l; @@ if (x == NULL || …) { … when forall return …; } … …

Continue reading