Tag: 6b81bef8cde141d8d8172a35633af27e17cf487a

V4L/DVB: drivers/media/video/em28xx: Remove potential NULL dereference

Author: Julia Lawall <julia@diku.dk> If the NULL test is necessary, the initialization involving a dereference of the tested value should be moved after the NULL test. The sematic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ type T; expression E; identifier i,fld; statement S; @@ – T i = E->fld; + T …

Continue reading