Tag: 02ffc5f3f91c265e110ddd1fdd7019a18426ebe5

ASoC: davinci-mcasp.c: Return error code in failure

Author: Julia Lawall <julia@diku.dk> In this code, 0 is returned on failure, even though other failures return -ENOMEM or other similar values. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @a@ identifier alloc; identifier ret; constant C; expression x; @@ x = alloc(…); if (x == NULL) …

Continue reading