From: Oliver Neukum Date: Mon, 24 Oct 2005 20:37:20 +0000 (+0200) Subject: [PATCH] USB: microtek patch to use kzalloc X-Git-Tag: v2.6.15-rc1~731^2~16^2~1^2~23 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=61eded6e06a1f4bdbf707b69da904ba9f3eb2f0a;p=~shefty%2Frdma-dev.git [PATCH] USB: microtek patch to use kzalloc here is another one to use kzalloc. Please apply. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/image/microtek.c b/drivers/usb/image/microtek.c index c84e1486054..c89d0769b3d 100644 --- a/drivers/usb/image/microtek.c +++ b/drivers/usb/image/microtek.c @@ -773,11 +773,10 @@ static int mts_usb_probe(struct usb_interface *intf, } - new_desc = kmalloc(sizeof(struct mts_desc), GFP_KERNEL); + new_desc = kzalloc(sizeof(struct mts_desc), GFP_KERNEL); if (!new_desc) goto out; - memset(new_desc, 0, sizeof(*new_desc)); new_desc->urb = usb_alloc_urb(0, GFP_KERNEL); if (!new_desc->urb) goto out_kfree;