Tag: b0795bbf6dc6bd0a7a37d9d1ef4558e9e2b0acd6

drivers/usb/serial/opticon.c: Release resources on kmalloc failure

Author: Julia Lawall <julia@diku.dk> Several resources have been allocated before this kmalloc failure, and thus they should be released in this error handling code, as done in nearby error handling code. The semantic match that finds this problem is: (http://coccinelle.lip6.fr/) // @r exists@ local idexpression urb; statement S; position p1,p2; @@ urb = usb_alloc_urb@p1(…); … …

Continue reading