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 548F945CFC; Thu, 14 Nov 2024 03:38:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C6B8742D76; Thu, 14 Nov 2024 03:37:59 +0100 (CET) Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by mails.dpdk.org (Postfix) with ESMTP id BC5E1427C6 for ; Thu, 14 Nov 2024 03:37:54 +0100 (CET) Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-7edb6879196so59556a12.3 for ; Wed, 13 Nov 2024 18:37:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731551874; x=1732156674; 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=h63uw/VdcasDFiJUxPTXNncnw2bDnNNTEnJfiSycMxihlpEndrJAwM0PCc4i2ugC5G iG/2kD049C5fGOPpzFO0gBUaXEZwCwsvyqp5s/KilbKXI+T5HkJHVizissRkF3Kr+SEO RVQUIwQoxA8tmwsWnB7l0w3vTnRh1JCl3/cvbYUlXqLT2DbGdcWfOYSMH0h1FhH0E7C6 ar8l87OTb4HD9wHczPOky1lJ4aMyxAyplVTcjGfkrFNoJEnUGmljRt2GoRCGXb8v+XVx mqK8H+qfZPppBWNP/Y6NW7zLYZFTNb6NLmrmn5fNC8llXDsDeRZsb83xXWKTCtfxxcRX lPjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731551874; x=1732156674; 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=CUyvXDuhFgQiwOYri+8Hj8j58gGHfbcM0IOJD62oPIi4iPmkENm2g3HfVGs5sXlByT SvjIGCipBc4bcWZLqbm75G3CHthSQPZuiElXtGnfoYhJ1CC1J2Hv2VNiCHuuRanwWYc4 pFk2L90OCKjsrMsId8yhz0LrOy3fG3zO6TumL7GX8vqY/GRSBb1g/yS2HZeGwsiSfBed gYuTbNWdWs7T2PM/XNMLhDnHIHeW8jiiQ3exQNrfyPfZ5/lhic7bSTn2aS4DbtBiLKec qojiytK/7C7R2IhIW1GFrD4eyA5MA2gUe4oW1kbARtPY9IracqW7pn77PKBU1PCCrTUT gPqA== X-Gm-Message-State: AOJu0YyAWSGv2BUpBPulwvnxSyV3uaUBIUmMDWdV7tyhQeDfGcWw3dwH NRrRTZS96X+9LgFpcPQ16X0ZG2wzxWu9Lt00JjSun//3CEdgMio3iOAXQYEE7owIo7d+TUbqjGG g X-Google-Smtp-Source: AGHT+IFr/SPhIUsIsUsVxDSiilC7/Cu0LjQShkX3PAScYTGV298yTERheDwVaLu5NNRKFgXrPPIixQ== X-Received: by 2002:a05:6a21:398:b0:1dc:e:e996 with SMTP id adf61e73a8af0-1dc22b63711mr29577465637.33.1731551874008; Wed, 13 Nov 2024 18:37:54 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7246a5d2bb5sm150976b3a.29.2024.11.13.18.37.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2024 18:37:53 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Chengwen Feng Subject: [PATCH v3 06/11] bus/uacce: remove memset before free Date: Wed, 13 Nov 2024 18:35:55 -0800 Message-ID: <20241114023738.141821-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241114023738.141821-1-stephen@networkplumber.org> References: <20241114011129.451243-1-stephen@networkplumber.org> <20241114023738.141821-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