summaryrefslogtreecommitdiff
path: root/xpp/xpp_usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/xpp_usb.c')
-rw-r--r--xpp/xpp_usb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/xpp/xpp_usb.c b/xpp/xpp_usb.c
index 73f351c..785e713 100644
--- a/xpp/xpp_usb.c
+++ b/xpp/xpp_usb.c
@@ -662,14 +662,12 @@ static int xusb_probe(struct usb_interface *interface, const struct usb_device_i
}
/* allocate memory for our device state and initialize it */
- xusb = kmalloc(sizeof(xusb_t), GFP_KERNEL);
+ xusb = KZALLOC(sizeof(xusb_t), GFP_KERNEL);
if (xusb == NULL) {
ERR("xpp_usb: Unable to allocate new xpp usb bus\n");
retval = -ENOMEM;
goto probe_failed;
}
- memset(xusb, 0, sizeof(xusb_t));
-
init_MUTEX (&xusb->sem);
atomic_set(&xusb->pending_writes, 0);
atomic_set(&xusb->pcm_tx_drops, 0);