[qca-nss-ecm] initialize pointers
In function 'ecm_tracker_ip_check_header_and_read':
/local/repo/qsdk-2.0/qsdk/build_dir/linux-ipq806x/qca-nss-ecm-g3020e2a/ecm_tracker.c:501:11:
warning: 'v6_hdr' may be used uninitialized in this function
[-Wuninitialized]
error, forbidden warning: ecm_tracker.c:501
Change-Id: I65cc375b89589fa7e71cb79507292f192e9f70f7
Signed-off-by: Matthew McClintock <mmcclint@qca.qualcomm.com>
diff --git a/ecm_tracker.c b/ecm_tracker.c
index 02a415b..06c1a6d 100644
--- a/ecm_tracker.c
+++ b/ecm_tracker.c
@@ -380,8 +380,8 @@
*/
bool ecm_tracker_ip_check_header_and_read(struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb)
{
- struct iphdr *v4_hdr;
- struct ipv6hdr *v6_hdr;
+ struct iphdr *v4_hdr = NULL;
+ struct ipv6hdr *v6_hdr = NULL;
int16_t this_header;
uint32_t offset;
uint16_t remain;