From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B24A4A0A02; Tue, 27 Apr 2021 14:51:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1926A40150; Tue, 27 Apr 2021 14:51:55 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 740004014E for ; Tue, 27 Apr 2021 14:51:53 +0200 (CEST) IronPort-SDR: zbBoOjE7kf962Z2bZIgIIZPCr36CVeVdEJCtw7r1W7y6bBD1iXfzT/F8JHzOSOQOIwUolsB+lQ 3GsQ3knLC+ow== X-IronPort-AV: E=McAfee;i="6200,9189,9966"; a="217209645" X-IronPort-AV: E=Sophos;i="5.82,254,1613462400"; d="scan'208";a="217209645" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2021 05:51:52 -0700 IronPort-SDR: 7oZTkxU1T2oJPTBfOFIX+jOWxcrXF26MgrqIbTZdJzkfRYPXPn+VQndNfQ7HG9zg/CE+zI/0XZ i/CRsAFK3s9A== X-IronPort-AV: E=Sophos;i="5.82,254,1613462400"; d="scan'208";a="457630595" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.221.231]) ([10.213.221.231]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2021 05:51:51 -0700 To: "Min Hu (Connor)" , dev@dpdk.org References: <1619075569-33619-1-git-send-email-humin29@huawei.com> <1619523581-60870-1-git-send-email-humin29@huawei.com> From: Ferruh Yigit X-User: ferruhy Message-ID: Date: Tue, 27 Apr 2021 13:51:48 +0100 MIME-Version: 1.0 In-Reply-To: <1619523581-60870-1-git-send-email-humin29@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v4] net/bonding: fix socket id check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 4/27/2021 12:39 PM, Min Hu (Connor) wrote: > From: Chengchang Tang > > The socket ID entered by user is cast to an unsigned integer. However, > the value may be an illegal negative value, which may cause some > problems. In this case, an error should be returned. > > In addition, the socket ID may be an invalid positive number, which is > also processed in this patch. > > Fixes: 2efb58cbab6e ("bond: new link bonding library") > Cc: stable@dpdk.org > > Signed-off-by: Chengchang Tang > Signed-off-by: Min Hu (Connor) Reviewed-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.