V4L/DVB: Fix the risk of an oops at dvb_dmx_release
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Feb 2010 13:35:22 +0000 (10:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 8 Feb 2010 12:45:24 +0000 (10:45 -0200)
commitadefdceef4c1cefee2678724cd57824c8ca80091
tree6c3f48315f310980287a5acb8c1fd9d796547d10
parent6339204ecc2aa2067a99595522de0403f0854bb8
V4L/DVB: Fix the risk of an oops at dvb_dmx_release

dvb_dmx_init tries to allocate virtual memory for 2 pointers: filter and feed.

If the second vmalloc fails, filter is freed, but the pointer keeps pointing
to the old place. Later, when dvb_dmx_release() is called, it will try to
free an already freed memory, causing an OOPS.

Reviewed-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-core/dvb_demux.c