V4L/DVB: dvb_demux: Don't use vmalloc at dvb_dmx_swfilter_packet
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Feb 2010 14:50:42 +0000 (11:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 8 Feb 2010 12:46:58 +0000 (10:46 -0200)
commitbc081cc8693800ebb118cc2cc6a859dd0b45921b
tree16d40582cfbdfefa332ba05aa8f717a08ec5f81b
parentadefdceef4c1cefee2678724cd57824c8ca80091
V4L/DVB: dvb_demux: Don't use vmalloc at dvb_dmx_swfilter_packet

As dvb_dmx_swfilter_packet() is protected by a spinlock, it shouldn't sleep.
However, vmalloc() may call sleep. So, move the initialization of
dvb_demux::cnt_storage field to a better place.

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