summaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe/aoecmd.c
diff options
context:
space:
mode:
authorEd L. Cashin <ecashin@coraid.com>2006-01-19 12:37:24 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-03-23 22:01:55 -0800
commit50bba752ca0a740a6ba9eb96d61ef7bbdfe405cf (patch)
treebf0ed717aba959dd27eb4e2e92c67d0503d3f0c7 /drivers/block/aoe/aoecmd.c
parenta1a051b1870f9e4607526c7e403abab06526c6d9 (diff)
downloadblackbird-op-linux-50bba752ca0a740a6ba9eb96d61ef7bbdfe405cf.tar.gz
blackbird-op-linux-50bba752ca0a740a6ba9eb96d61ef7bbdfe405cf.zip
[PATCH] aoe [1/8]: zero packet data after skb allocation
Zero the data in new socket buffers to prevent leaking information. Signed-off-by: "Ed L. Cashin" <ecashin@coraid.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/block/aoe/aoecmd.c')
-rw-r--r--drivers/block/aoe/aoecmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index 326ca3876b68..4ab01ce5cf36 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -28,6 +28,7 @@ new_skb(struct net_device *if_dev, ulong len)
skb->protocol = __constant_htons(ETH_P_AOE);
skb->priority = 0;
skb_put(skb, len);
+ memset(skb->head, 0, len);
skb->next = skb->prev = NULL;
/* tell the network layer not to perform IP checksums
OpenPOWER on IntegriCloud