Tag: 5959809ded86e267c1a95fb44738a224c30d3434

Bluetooth: Add missing kmalloc NULL tests to Marvell driver

Author: Julia Lawall <julia@diku.dk> Check that the result of kmalloc is not NULL before dereferencing it. The patch also replaces kmalloc + memset by kzalloc. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression *x; identifier f; constant char *C; @@ x = \(kmalloc\|kcalloc\|kzalloc\)(…); … when != x == NULL …

Continue reading