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

Commit 092e462a authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB: kzalloc in idmouse



another for kzalloc.

Signed-off-by: default avatarOliver Neukum <oliver@neukum.name>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5f748133
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -340,10 +340,9 @@ static int idmouse_probe(struct usb_interface *interface,
		return -ENODEV;

	/* allocate memory for our device state and initialize it */
	dev = kmalloc(sizeof(*dev), GFP_KERNEL);
	dev = kzalloc(sizeof(*dev), GFP_KERNEL);
	if (dev == NULL)
		return -ENOMEM;
	memset(dev, 0x00, sizeof(*dev));

	init_MUTEX(&dev->sem);
	dev->udev = udev;