Tag: 6e0c64f4ddf4a76a04108c1e24132d5d7dea8872

arch/mn10300/mm: eliminate NULL dereference

Author: Julia Lawall <julia@diku.dk> dev_name always dereferences its argument, so it should not be called if the argument is NULL. The function indeed later tests the argument for being NULL. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression dev,E; @@ *dev_name(dev) … when != dev = E ( *dev …

Continue reading