summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2011-07-04 11:11:41 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 17:55:55 -0300
commitef60e8f5d58752879cc69d9746133f2416ac206a (patch)
treef850299d33f68ab84f8ccf53cf716b3158f2dca9 /drivers/media/rc
parentee893e9adccd7dc22a6cfc5d4f49e7dd0baead0c (diff)
downloadblackbird-op-linux-ef60e8f5d58752879cc69d9746133f2416ac206a.tar.gz
blackbird-op-linux-ef60e8f5d58752879cc69d9746133f2416ac206a.zip
[media] drivers/media/video/cx231xx/cx231xx-cards.c: add missing kfree
Clear the cx231xx_devused variable and free dev in the error handling code, as done in the error handling code nearby. The semantic match that finds this problem is as follows: // <smpl> @r@ identifier x; @@ kfree(x) @@ identifier r.x; expression E1!=0,E2,E3,E4; statement S; @@ ( if (<+...x...+>) S | if (...) { ... when != kfree(x) when != if (...) { ... kfree(x); ... } when != x = E3 * return E1; } ... when != x = E2 if (...) { ... when != x = E4 kfree(x); ... return ...; } ) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud