Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] em28xx_dvb: only call the software filter if data

Several URBs will be simply not filled. Don't call the DVB
core software filter for those empty URBs.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

+4
+4
drivers/media/usb/em28xx/em28xx-dvb.c
··· 161 161 if (urb->status != -EPROTO) 162 162 continue; 163 163 } 164 + if (!urb->actual_length) 165 + continue; 164 166 dvb_dmx_swfilter(&dev->dvb->demux, urb->transfer_buffer, 165 167 urb->actual_length); 166 168 } else { ··· 172 170 if (urb->iso_frame_desc[i].status != -EPROTO) 173 171 continue; 174 172 } 173 + if (!urb->iso_frame_desc[i].actual_length) 174 + continue; 175 175 dvb_dmx_swfilter(&dev->dvb->demux, 176 176 urb->transfer_buffer + 177 177 urb->iso_frame_desc[i].offset,