Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61eded6e authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB: microtek patch to use kzalloc



here is another one to use kzalloc. Please apply.

Signed-off-by: default avatarOliver Neukum <oliver@neukum.name>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent dcab4eaf
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;