diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2009-03-04 12:06:15 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-24 16:20:44 -0700 |
commit | 31dbb803464d75b96212cce9052dfeaeac0819de (patch) | |
tree | 608ab9e3203ecaf00a0a04ecd318d0d45bc4a50d /drivers/usb/wusbcore | |
parent | d34d9721a559fd11ec682bd9ef17220de0162060 (diff) | |
download | kernel_samsung_tuna-31dbb803464d75b96212cce9052dfeaeac0819de.zip kernel_samsung_tuna-31dbb803464d75b96212cce9052dfeaeac0819de.tar.gz kernel_samsung_tuna-31dbb803464d75b96212cce9052dfeaeac0819de.tar.bz2 |
USB: use kzfree()
Use kzfree() instead of memset() + kfree().
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/wusbcore')
-rw-r--r-- | drivers/usb/wusbcore/cbaf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/wusbcore/cbaf.c b/drivers/usb/wusbcore/cbaf.c index 1335cbe..25eae40 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[] = { |