Tag: d98808a253f209465ed9f415c565f4c294a213b8

drivers/char/ppdev.c: put gotten port value

Author: Julia Lawall <julia@diku.dk> parport_find_number() calls parport_get_port() on its result, so there should be a corresponding call to parport_put_port() before dropping the reference. Similar code is found in the function register_device() in the same file. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @exists@ local idexpression struct parport * x; expression …

Continue reading