Tag: 1db90ea239b85479daedb978ea2f0a61776f074f

[SCSI] hptiop: Eliminate a NULL pointer dereference

Author: Julia Lawall <julia@diku.dk> The end of the function is reachable both when host is and is not NULL. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ expression E,E1; identifier f; statement S1,S2,S3; @@ if ((E == NULL && …) || …) { … when …

Continue reading