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 3554D45D07; Thu, 14 Nov 2024 19:45:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DB1A342EF2; Thu, 14 Nov 2024 19:45:12 +0100 (CET) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id DEC4C42EDE for ; Thu, 14 Nov 2024 19:45:07 +0100 (CET) Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2e56750bb0dso802353a91.0 for ; Thu, 14 Nov 2024 10:45:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731609907; x=1732214707; 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=A1IvzV8zpi2llqFwHCoOC3dY0aGpNkCUrWyRmvGxNohU/4y9xgXMohrgbScyxDa11b J7WJ2JFbufVGhMCX7pEZ1UU9HgelZuXRIfoxttO4wWR0EdL4LaGVXszoEcuuNfxRzwFA 9vra+/NHJu0FIyFS4fCM9fPSsOgkmcOWRcLPQXVCFWWi5UEtj9qibW+4w7ZRMz0KmW9Y ScWjy/r2ehtHxw/rvY0XbbblYHc/hSaH6SGpzUOdVj+n42Mb4Jg1OgeQAMA5jfwQnNS8 LrNZAzYGgENMckLVyyDLXYN+UGw5cJE2AdvZEf8l0or14hj2aZT9Nq6vOnuqi94cBZxu 9pZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731609907; x=1732214707; 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=lONpVNRzk59+4djKQ1q9t2kEJDpF6HbkZYOjnAxtmQHSkJvcKtnMoZmtX2XXPDmSuI J+IzgwtD171TU0+D9twFA6Hc9WOesBbBMJN4CXr9JVFIV8oUUzOGnCdxw9/0VgRxjZrM oJXzGRKd0dO65XAiEQyLLm1AUlywJ8IRN5LlhqEB2aymzuXFW87TOCe7dUuUK7yPUZey Z+0j9UZgP3DU+3R2hqVSi4w9wwXBnvfJMD3RPlhvRlULzyZhY8PJ17o2Z4gPGTRrSABB z5tHL9QaWB3jK1snZmyGK6frI3cNIopsXWMesN/UHZE2wwMvqIjSlucZSrTzrp6RicNe ecrg== X-Gm-Message-State: AOJu0YyFRUXE0JE4nSXXkgJfDW1UAgtKEyHfCnP2+yo4Ps18MlcJalcY UxXJIC6VLuXXbpFb8xBZZOdciTwYtz0fSHw7uu6uN0Np2ggWrOJhqt2zrlWVhV+bwQ4VR7nQF13 k6KQ= X-Google-Smtp-Source: AGHT+IHoxf5BcjztWDwq1yRa84RjmG/OLkmKx3gCIlbJn4akuWu4/L8n/kbxDjpRXTgRxYv9fb+o8g== X-Received: by 2002:a17:90b:5111:b0:2e2:bd34:f23b with SMTP id 98e67ed59e1d1-2ea06a5f751mr3352331a91.32.1731609907100; Thu, 14 Nov 2024 10:45:07 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ea06ef71a6sm1517611a91.8.2024.11.14.10.45.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2024 10:45:06 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Chengwen Feng Subject: [PATCH v4 06/12] bus/uacce: remove memset before free Date: Thu, 14 Nov 2024 10:43:28 -0800 Message-ID: <20241114184452.31854-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241114184452.31854-1-stephen@networkplumber.org> References: <20241114011129.451243-1-stephen@networkplumber.org> <20241114184452.31854-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