summaryrefslogtreecommitdiff
path: root/drivers/usb/media/dabusb.c
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2006-01-06 21:01:47 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-03-20 14:49:53 -0800
commitd8e298dc9feed17f397be4bb2cd8c1dd47248c74 (patch)
tree1c478af244d9bf487df177fad37f4b54144a4965 /drivers/usb/media/dabusb.c
parentbbdb7dafb5b5a3c0197cbabd5055d8e9c093e3ea (diff)
[PATCH] USB: kzalloc in dabusb
kzalloc in dabusb. Signed-off-by: Oliver Neukum <oliver@neukum.name> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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)
pipesize, packets, transfer_buffer_length);
while (buffers < (s->total_buffer_size << 10)) {
- b = (pbuff_t) kmalloc (sizeof (buff_t), GFP_KERNEL);
+ b = (pbuff_t) kzalloc (sizeof (buff_t), GFP_KERNEL);
if (!b) {
- err("kmalloc(sizeof(buff_t))==NULL");
+ err("kzalloc(sizeof(buff_t))==NULL");
goto err;
}
- memset (b, 0, sizeof (buff_t));
b->s = s;
b->purb = usb_alloc_urb(packets, GFP_KERNEL);
if (!b->purb) {