瀏覽代碼

qcacld-3.0: Allocate/Free skb in same function

The skb used for HW-mode-change vendor event will be freed twice
in failure scenario.
To avoid this, just keep the free in same function as allocation.

CRs-Fixed: 2274784
Change-Id: Ibd37bc9787470da6de93c87a16c4c3bed7d1f78e
Lin Bai 6 年之前
父節點
當前提交
5dc5495d9a
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      core/hdd/src/wlan_hdd_cfg80211.c

+ 0 - 2
core/hdd/src/wlan_hdd_cfg80211.c

@@ -13935,7 +13935,6 @@ static int wlan_hdd_fill_intf_info(struct sk_buff *skb,
 	return 0;
 error:
 	hdd_err("Fill buffer with interface info failed");
-	kfree_skb(skb);
 	return -EINVAL;
 }
 
@@ -13999,7 +13998,6 @@ static int wlan_hdd_fill_mac_info(struct sk_buff *skb,
 	return 0;
 error:
 	hdd_err("Fill buffer with mac info failed");
-	kfree_skb(skb);
 	return -EINVAL;
 }