summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorXavier LANGELLIER <xln@renesas41.rmad.renesasmobile.com>2012-10-11 15:01:38 +0200
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-11-23 02:28:27 -0800
commit08dc4d8cc91b161aa14df77fec083be034b47035 (patch)
treeb93cf789f82bff8304dd0831b73fa663ae198f1c /net
parent5b3f08b1656ec945bad23a2beb04d13e26abc06b (diff)
net: mhi: Remove keep alive feature in MHDP
Remove keep alive feature in MHDP (rework) Bug 1167018 Change-Id: I0beddcc334e7528461f525f0c8beedda8bef405c Signed-off-by: wtsai <wtsai@nvidia.com> Reviewed-on: http://git-master/r/165081 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'net')
-rw-r--r--net/mhi/l3mhdp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mhi/l3mhdp.c b/net/mhi/l3mhdp.c
index a728eeab5ef5..6acf1f6fee91 100644
--- a/net/mhi/l3mhdp.c
+++ b/net/mhi/l3mhdp.c
@@ -557,6 +557,11 @@ mhdp_netdev_rx(struct sk_buff *skb, struct net_device *dev)
}
rcu_read_unlock();
+ if (mhdp_header_len > skb_headlen(skb))
+ kfree(mhdpHdr);
+
+ dev_kfree_skb(skb);
+
return err;
error: