projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bef64b
)
USB: omninet: use kzalloc for private data
author
Johan Hovold
<jhovold@gmail.com>
Tue, 16 Apr 2013 16:01:19 +0000
(18:01 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 17 Apr 2013 17:05:34 +0000
(10:05 -0700)
Make sure the port private data, which contains the write sequence
number, is cleared at allocation.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/omninet.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/omninet.c
b/drivers/usb/serial/omninet.c
index 1e1cafe287e4e63f7b7c23a18fd9b66965228e2e..ea1105c84d50038e20378e1f9f83b2a4250a04df 100644
(file)
--- a/
drivers/usb/serial/omninet.c
+++ b/
drivers/usb/serial/omninet.c
@@
-112,7
+112,7
@@
static int omninet_port_probe(struct usb_serial_port *port)
{
struct omninet_data *od;
- od = k
malloc(sizeof(struct omninet_data
), GFP_KERNEL);
+ od = k
zalloc(sizeof(*od
), GFP_KERNEL);
if (!od)
return -ENOMEM;