]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (9645): em28xx: Avoid memory leaks if registration fails
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 Nov 2008 13:23:19 +0000 (10:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 20 Nov 2008 19:19:20 +0000 (17:19 -0200)
commit625ff1679456d8adb9af0c980394ea3954e727a8
treec1678e41cdd64ba37fc36d2c34bbd31565027f6b
parent99afb989b05b9fb1c7b3831ce4b7a000b214acdb
V4L/DVB (9645): em28xx: Avoid memory leaks if registration fails

em28xx_init_dev() has some error conditions that are not properly
de-allocating dev var, nor freeing the device number for a future usage.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-video.c