Tag: bcf4d812e66ee95f762b38063d654fd1ff7156b0

drivers/net: 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