The patch number 9602 was added via Douglas Schilling Landgraf <[EMAIL 
PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Douglas Schilling Landgraf  <[EMAIL PROTECTED]>
dvb-ttusb-budget: Add NULL pointer validation


Added validation for NULL pointer

Priority: high

Signed-off-by: Douglas Schilling Landgraf <[EMAIL PROTECTED]>


---

 linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff -r fb557aab569a -r e3899aaf394c 
linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
--- a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c   Wed Nov 12 
00:27:59 2008 -0200
+++ b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c   Wed Nov 12 
00:30:49 2008 -0200
@@ -827,6 +827,12 @@ static int ttusb_alloc_iso_urbs(struct t
                                                 FRAMES_PER_ISO_BUF *
                                                 ISO_BUF_COUNT,
                                                 &ttusb->iso_dma_handle);
+
+       if (!ttusb->iso_buffer) {
+               dprintk("%s: pci_alloc_consistent - not enough memory\n",
+                       __func__);
+               return -ENOMEM;
+       }
 
        memset(ttusb->iso_buffer, 0,
               ISO_FRAME_SIZE * FRAMES_PER_ISO_BUF * ISO_BUF_COUNT);


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/e3899aaf394c611b45b62c0b6ac030e23b6e7b64

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to