diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c index d3282ec62c5b..d56484f20467 100644 --- a/drivers/media/video/em28xx/em28xx-core.c +++ b/drivers/media/video/em28xx/em28xx-core.c | |||
@@ -648,7 +648,7 @@ void em28xx_uninit_isoc(struct em28xx *dev) | |||
648 | */ | 648 | */ |
649 | int em28xx_init_isoc(struct em28xx *dev) | 649 | int em28xx_init_isoc(struct em28xx *dev) |
650 | { | 650 | { |
651 | /* change interface to 3 which allowes the biggest packet sizes */ | 651 | /* change interface to 3 which allows the biggest packet sizes */ |
652 | int i, errCode; | 652 | int i, errCode; |
653 | const int sb_size = EM28XX_NUM_PACKETS * dev->max_pkt_size; | 653 | const int sb_size = EM28XX_NUM_PACKETS * dev->max_pkt_size; |
654 | 654 | ||
@@ -673,6 +673,7 @@ int em28xx_init_isoc(struct em28xx *dev) | |||
673 | ("unable to allocate %i bytes for transfer buffer %i\n", | 673 | ("unable to allocate %i bytes for transfer buffer %i\n", |
674 | sb_size, i); | 674 | sb_size, i); |
675 | em28xx_uninit_isoc(dev); | 675 | em28xx_uninit_isoc(dev); |
676 | usb_free_urb(urb); | ||
676 | return -ENOMEM; | 677 | return -ENOMEM; |
677 | } | 678 | } |
678 | memset(dev->transfer_buffer[i], 0, sb_size); | 679 | memset(dev->transfer_buffer[i], 0, sb_size); |