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>
diff --git a/net/mhi/l3mhdp.c b/net/mhi/l3mhdp.c
index a728eea..6acf1f6 100644
--- a/net/mhi/l3mhdp.c
+++ b/net/mhi/l3mhdp.c
@@ -557,6 +557,11 @@
}
rcu_read_unlock();
+ if (mhdp_header_len > skb_headlen(skb))
+ kfree(mhdpHdr);
+
+ dev_kfree_skb(skb);
+
return err;
error: