aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/usb-urb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/dvb-usb/usb-urb.c')
-rw-r--r--drivers/media/dvb/dvb-usb/usb-urb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/dvb-usb/usb-urb.c b/drivers/media/dvb/dvb-usb/usb-urb.c
index 86d68933b6b..d62ee0f5a16 100644
--- a/drivers/media/dvb/dvb-usb/usb-urb.c
+++ b/drivers/media/dvb/dvb-usb/usb-urb.c
@@ -148,7 +148,7 @@ static int usb_bulk_urb_init(struct usb_data_stream *stream)
148 if (!stream->urb_list[i]) { 148 if (!stream->urb_list[i]) {
149 deb_mem("not enough memory for urb_alloc_urb!.\n"); 149 deb_mem("not enough memory for urb_alloc_urb!.\n");
150 for (j = 0; j < i; j++) 150 for (j = 0; j < i; j++)
151 usb_free_urb(stream->urb_list[i]); 151 usb_free_urb(stream->urb_list[j]);
152 return -ENOMEM; 152 return -ENOMEM;
153 } 153 }
154 usb_fill_bulk_urb( stream->urb_list[i], stream->udev, 154 usb_fill_bulk_urb( stream->urb_list[i], stream->udev,
@@ -181,7 +181,7 @@ static int usb_isoc_urb_init(struct usb_data_stream *stream)
181 if (!stream->urb_list[i]) { 181 if (!stream->urb_list[i]) {
182 deb_mem("not enough memory for urb_alloc_urb!\n"); 182 deb_mem("not enough memory for urb_alloc_urb!\n");
183 for (j = 0; j < i; j++) 183 for (j = 0; j < i; j++)
184 usb_free_urb(stream->urb_list[i]); 184 usb_free_urb(stream->urb_list[j]);
185 return -ENOMEM; 185 return -ENOMEM;
186 } 186 }
187 187