aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/media/dabusb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/media/dabusb.c')
-rw-r--r--drivers/usb/media/dabusb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/media/dabusb.c b/drivers/usb/media/dabusb.c
index 18d8eaf408d5..6f560fe9a519 100644
--- a/drivers/usb/media/dabusb.c
+++ b/drivers/usb/media/dabusb.c
@@ -217,12 +217,11 @@ static int dabusb_alloc_buffers (pdabusb_t s)
217 pipesize, packets, transfer_buffer_length); 217 pipesize, packets, transfer_buffer_length);
218 218
219 while (buffers < (s->total_buffer_size << 10)) { 219 while (buffers < (s->total_buffer_size << 10)) {
220 b = (pbuff_t) kmalloc (sizeof (buff_t), GFP_KERNEL); 220 b = (pbuff_t) kzalloc (sizeof (buff_t), GFP_KERNEL);
221 if (!b) { 221 if (!b) {
222 err("kmalloc(sizeof(buff_t))==NULL"); 222 err("kzalloc(sizeof(buff_t))==NULL");
223 goto err; 223 goto err;
224 } 224 }
225 memset (b, 0, sizeof (buff_t));
226 b->s = s; 225 b->s = s;
227 b->purb = usb_alloc_urb(packets, GFP_KERNEL); 226 b->purb = usb_alloc_urb(packets, GFP_KERNEL);
228 if (!b->purb) { 227 if (!b->purb) {