V4L/DVB (9602): dvb-ttusb-budget: Add NULL pointer validation

Added validation for NULL pointer

Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by Douglas Schilling Landgraf and committed by Mauro Carvalho Chehab 11eb260a d7c31a1e

+6
+6
drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
··· 808 808 ISO_BUF_COUNT, 809 809 &ttusb->iso_dma_handle); 810 810 811 + if (!ttusb->iso_buffer) { 812 + dprintk("%s: pci_alloc_consistent - not enough memory\n", 813 + __func__); 814 + return -ENOMEM; 815 + } 816 + 811 817 memset(ttusb->iso_buffer, 0, 812 818 ISO_FRAME_SIZE * FRAMES_PER_ISO_BUF * ISO_BUF_COUNT); 813 819