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 2C39D45CF9; Wed, 13 Nov 2024 19:57:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 066DF40FDE; Wed, 13 Nov 2024 19:57:37 +0100 (CET) Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) by mails.dpdk.org (Postfix) with ESMTP id AEB3840E3A for ; Wed, 13 Nov 2024 19:57:33 +0100 (CET) Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-7f43259d220so4107091a12.3 for ; Wed, 13 Nov 2024 10:57:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731524253; x=1732129053; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nty0XBWWTjLBUKKftxt/XVsL+wbUPIw1NLIfrRmY5W4=; b=DhfvCBQEBOI6Hn+ft2DxIAhR0wcLx3H0AbBiY/r1bVWXP8ypNoVnI0+6dVtYd3ZyTK q3fZ6V4THbIcf44OWu6oB5f41kwc7+2nHlmdOIKpuEhjiay16OHX9/jk7GepeAED9kPE q10lQpUlwqpagQU+eLh9XDoQfV8HzYzBGirT/J5xLPLq6aBcvZ/GxM5lXZs8lrS8wzwg c1JL74AZTe5JqOI6uwEVskxWILbKRHmHZ55Ibiu/jHMEfkSPnOUuAbw7IyDjUh3Noe+A Sgh/c21XmVMVQly0TEbZgb9+OB7C1g7zGwdSFmWkSntOaqGYwbcq3veh6q+kImFg8GJY 6ywQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731524253; x=1732129053; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nty0XBWWTjLBUKKftxt/XVsL+wbUPIw1NLIfrRmY5W4=; b=hkupJlPeLKrcshdfRHO8g/S1F/LYq5NWacsPkXHfxwGSnTxWB1cu0c1ysI9IZsoeZO nZuz1+r2FCERSpOy/j/S9Yhc3At8VK4RcR2GWrrWMHZ+jVg1Jvsz0ZH9CfGm3sNOScFA He9BI7iR/aYax3R5Y3TRWmun/mntuvQR/vyCzfED180pFHuI+9tz/Zz70JgZtYIYLy8a inOWm9suKupvFtioviAcPgMNucYIYvwkFWTzBs8ozUrSF6qmSGiEi+DpunJ1TF3TDF1q uDLNNHGtXivUQ1kqU7JOm+DfnNCELNLOE9kHhRiBCCdjmbEqJYnDGzStrauNV4NTvrWd jylQ== X-Gm-Message-State: AOJu0Yz+QbEyhNMV7h1X4GLbj9JeyokAW2RKOROdl1hHq0t21HZW7lNR 2iy46ZOBPsjnpkBnxdFH7iL9BARu60oPhLyMLKh/RIho/HPHJ2HbwFLVKOcJxYEafOk+eQ1uOll D X-Google-Smtp-Source: AGHT+IHbdCP3oLYXXve+oHnqK58xg2Xf0Kh1g9JAFXoathvqJ6UjhRcLrGQ+yMaYU21bm3sOcauGPg== X-Received: by 2002:a17:90b:17d2:b0:2e2:d3e9:eb33 with SMTP id 98e67ed59e1d1-2e9b16fcabdmr28163490a91.11.1731524252838; Wed, 13 Nov 2024 10:57:32 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9f3e977d7sm1817935a91.8.2024.11.13.10.57.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2024 10:57:32 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Chengwen Feng Subject: [RFC 3/5] bus/uacce: remove memset before free Date: Wed, 13 Nov 2024 10:56:02 -0800 Message-ID: <20241113185720.28706-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241113185720.28706-1-stephen@networkplumber.org> References: <20241113185720.28706-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Doing memset before free maybe removed by compiler, and is flagged by security scanning tools as potential problem. In this case the memset is unnecessary. Signed-off-by: Stephen Hemminger --- drivers/bus/uacce/uacce.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/bus/uacce/uacce.c b/drivers/bus/uacce/uacce.c index c1529c38c0..35c1027245 100644 --- a/drivers/bus/uacce/uacce.c +++ b/drivers/bus/uacce/uacce.c @@ -454,7 +454,6 @@ uacce_cleanup(void) dev->device.driver = NULL; free: - memset(dev, 0, sizeof(*dev)); free(dev); } -- 2.45.2