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:
7970f19
)
caif_usb: use target structure member in memset
author
Fabian Frederick
<
[email protected]
>
Tue, 14 Oct 2014 17:01:14 +0000
(19:01 +0200)
committer
David S. Miller
<
[email protected]
>
Tue, 14 Oct 2014 20:05:45 +0000
(16:05 -0400)
parent cfusbl was used instead of first structure member 'layer'
Suggested-by: Joe Perches <
[email protected]
>
Signed-off-by: Fabian Frederick <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/caif/caif_usb.c
patch
|
blob
|
history
diff --git
a/net/caif/caif_usb.c
b/net/caif/caif_usb.c
index 0e487b07cf967e8c87b60a1a4fb40a69a088c2a5..5cd44f001f6479a5e5ec9d02cfc417b899b05e9d 100644
(file)
--- a/
net/caif/caif_usb.c
+++ b/
net/caif/caif_usb.c
@@
-92,7
+92,7
@@
static struct cflayer *cfusbl_create(int phyid, u8 ethaddr[ETH_ALEN],
caif_assert(offsetof(struct cfusbl, layer) == 0);
- memset(
this, 0, sizeof(struct cf
layer));
+ memset(
&this->layer, 0, sizeof(this->
layer));
this->layer.receive = cfusbl_receive;
this->layer.transmit = cfusbl_transmit;
this->layer.ctrlcmd = cfusbl_ctrlcmd;