]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/staging/media/easycap/easycap_main.c
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[~shefty/rdma-dev.git] / drivers / staging / media / easycap / easycap_main.c
index a1c45e4dcdce37e0b1ac885fca0e8750591add80..8269c77dbf7df5b2a9d860d304a06c806c88448a 100644 (file)
@@ -3083,6 +3083,7 @@ static int create_video_urbs(struct easycap *peasycap)
                peasycap->allocation_video_urb += 1;
                pdata_urb = kzalloc(sizeof(struct data_urb), GFP_KERNEL);
                if (!pdata_urb) {
+                       usb_free_urb(purb);
                        SAM("ERROR: Could not allocate struct data_urb.\n");
                        return -ENOMEM;
                }