summaryrefslogtreecommitdiffstats
path: root/drivers/usb/wusbcore/cbaf.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/wusbcore/cbaf.c')
-rw-r--r--drivers/usb/wusbcore/cbaf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/wusbcore/cbaf.c b/drivers/usb/wusbcore/cbaf.c
index 1335cbe1191d..25eae405f622 100644
--- a/drivers/usb/wusbcore/cbaf.c
+++ b/drivers/usb/wusbcore/cbaf.c
@@ -638,8 +638,7 @@ static void cbaf_disconnect(struct usb_interface *iface)
usb_put_intf(iface);
kfree(cbaf->buffer);
/* paranoia: clean up crypto keys */
- memset(cbaf, 0, sizeof(*cbaf));
- kfree(cbaf);
+ kzfree(cbaf);
}
static struct usb_device_id cbaf_id_table[] = {