From 73b9da90c16130475937bcaa6293595515066663 Mon Sep 17 00:00:00 2001 From: Junxin Chen Date: Thu, 20 Feb 2020 16:54:06 +0800 Subject: [PATCH] net: fix bug and change version to 1.9.33.0 driver inclusion category: bugfix bugzilla: NA CVE: NA ---------------------------------- This patch fixes bug for hns3_cae_pkt and change version to 1.9.33.0 Signed-off-by: Junxin Chen Reviewed-by: Zhaohui Zhong Signed-off-by: Yang Yingliang --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_pkt.c | 2 ++ drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_version.h | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 2 +- 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h index 24a5846740d3..126923f14ac9 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h +++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h @@ -30,7 +30,7 @@ #include #include -#define HNAE3_MOD_VERSION "1.9.32.0" +#define HNAE3_MOD_VERSION "1.9.33.0" #define HNAE3_MIN_VECTOR_NUM 2 /* one for msi-x, another for IO */ diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_pkt.c b/drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_pkt.c index 3d0496647eb4..19ffa95f298c 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_pkt.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_pkt.c @@ -418,6 +418,7 @@ void __fill_the_pkt_head(struct net_device *netdev, u8 *payload, dev_err(&netdev->dev, "pkt_len(=%d) of ipv4 trace route pkt must big than %d.\n", in_info->pkt_len, IPV4_TRACEROUTE_PKT_LEN); + kfree(pkt_payload); return; } @@ -436,6 +437,7 @@ void __fill_the_pkt_head(struct net_device *netdev, u8 *payload, dev_err(&netdev->dev, "pkt_len(=%d) of ipv6 extension pkt must big than %d.\n", in_info->pkt_len, IPV6_EXTENSION_PKT_LEN); + kfree(pkt_payload); return; } memcpy(payload, in_info->dst_mac, ETH_ALEN); diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_version.h b/drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_version.h index a6a07c709d31..6360546c2ae4 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_version.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_version.h @@ -4,7 +4,7 @@ #ifndef __HNS3_CAE_VERSION_H__ #define __HNS3_CAE_VERSION_H__ -#define HNS3_CAE_MOD_VERSION "1.9.32.0" +#define HNS3_CAE_MOD_VERSION "1.9.33.0" #define CMT_ID_LEN 8 #define RESV_LEN 3 diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index 17d7c098b569..a4cf1a8d79f3 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -8,7 +8,7 @@ #include "hnae3.h" -#define HNS3_MOD_VERSION "1.9.32.0" +#define HNS3_MOD_VERSION "1.9.33.0" extern char hns3_driver_version[]; diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h index 20729a2d6ef0..ed14bd83f487 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h @@ -12,7 +12,7 @@ #include "hclge_cmd.h" #include "hnae3.h" -#define HCLGE_MOD_VERSION "1.9.32.0" +#define HCLGE_MOD_VERSION "1.9.33.0" #define HCLGE_DRIVER_NAME "hclge" #define HCLGE_MAX_PF_NUM 8 diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h index 47c9f160a4cd..92bbe15d6604 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h @@ -10,7 +10,7 @@ #include "hclgevf_cmd.h" #include "hnae3.h" -#define HCLGEVF_MOD_VERSION "1.9.32.0" +#define HCLGEVF_MOD_VERSION "1.9.33.0" #define HCLGEVF_DRIVER_NAME "hclgevf" #define HCLGEVF_MAX_VLAN_ID 4095 -- GitLab