From patchwork Mon Dec 25 04:43:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 758214 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp2527571wrw; Sun, 24 Dec 2023 20:45:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEC9VIJYXB3wHi2Aok+44IP3rFmO0cMs9KRbrmomgKo2qQPL2MCtk41EfxG7uTCIy604QjN X-Received: by 2002:a05:600c:da:b0:40c:3984:498f with SMTP id u26-20020a05600c00da00b0040c3984498fmr1908024wmm.261.1703479545496; Sun, 24 Dec 2023 20:45:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703479545; cv=none; d=google.com; s=arc-20160816; b=Q9pZTTLNd3ats1JQodpkauFGb8YZQEVMPte14+SW/WLGiduJd+RYWEIgxhe79FFdWq AQx111y8R+GsEAOJWMiDFykqLKA7dwb9ffi3D0D6+lN+PtDucnG4fAY5nVwrevx0nyMB HZ9ZuDhZXUk4qarfdsCADIeChLIteiezbJ8wVWBAVw0s9s8HmkcmSWroGENYFoxC5324 r/42yrNt09bee8yRedQA7FbLLNP6s0u0mGcPyI0FuDPoOSa9NHBjzTDTjpnHTRtLGZOy bE3+GUN9gF7KwgXakaLRjuhYGagPmdYfJwmU7xDT3mKRXacG9w4d8z7Q5DSkDpJEWEh/ ot2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=a134M/rre9VCF78Vqldrr5aEUusobu/LupyefrNgbow=; fh=XwOfspvhog7otCudZV1ecvxibH3YToEgjgP70JntENo=; b=RHHqtrQQxr7ukvuvbQrb41+Zii8SBXdFknAwpnOD5xbZj02ekVdL4m0hJaUM8tUCs8 2IGk3RoNRNfUxC6yuDz0SC/EsUinXYBSmrVMs6arFA1oh42g/yUHvvDH4485KALCJTwX WYOjo89VwJhVypDJRg6dH6N0gbLpAMLW11mR+1tptDnO3drMxBRpKTTPHCeesyMfJigt qzOagHfd2w2SX00AZG3vExW0VaV+7TBaeB5wc2l+qhVewYFY/24Yrq8/h3sKxYlMlv5A BywCOCfcDEWHrBBsKYS7l2+VtPNOUFN6/YgJ5g+Ohhp7/hY1m7VppaTnmZsE6UZv02ce 1l4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BOMMQCVG; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id f1-20020a7bc8c1000000b0040b55f42957si6885658wml.45.2023.12.24.20.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Dec 2023 20:45:45 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BOMMQCVG; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CAC12877CB; Mon, 25 Dec 2023 05:45:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="BOMMQCVG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 47D6A871DA; Mon, 25 Dec 2023 05:45:43 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EA49A871DA for ; Mon, 25 Dec 2023 05:45:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6dbf0561f8bso53437a34.1 for ; Sun, 24 Dec 2023 20:45:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703479538; x=1704084338; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=a134M/rre9VCF78Vqldrr5aEUusobu/LupyefrNgbow=; b=BOMMQCVGDTr3l+KTj7tUUFWSCxRuLTV8hoxzQsoAy2PJeRrVLJentVbFBtiGcApFTj HWT7Rn4fEbcEyx6rC+/Q79IMREylQZDuAUIrUrBXy9rky1kTah+R4kl4Z3hMfq4+/FMQ A4QxmZSQZv+FwCBfH/ts/oytea4Vommt20Vpy7uMdmPKjyaAFWsbpH8vRBLL5sXxpg+f CWwKpdHm2ZhAq5gAFC1+wydMcBUEFpGj6S3AmpIpQ8oVDfcK8bpJJ7DUsTktoflNLLNv k9x7gH83A57J/bEg05zoKPR3lFtDPMDCxzAiEX53nJQONVEdMzAErVQ9SDmwc0BGiXi5 ztcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703479538; x=1704084338; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=a134M/rre9VCF78Vqldrr5aEUusobu/LupyefrNgbow=; b=fEH5odmgvWBF3tGhXp/nZaYM4ppm5OcsbOUHUP+h8HNvrJ9xIZf1LXIWtiVHTpxCKv UbqQ1o9jMWzaETRTIc2P0xMAuQ4mNV40IG+52Bq+ZSbZolDjrRZZkRkU/aARRpM3dNoU bYrTCMv3A1DoRhfcwC+PJB4pR7dnhDe9Cwr58rdSiWUpKeoJmucxdY7OLwfmpElmjlxJ wHo/V1yIAuj7Z7ropRHh+MPkLZpDyLccAIF2ZgjIniGg51c8PmwPCpY55mYhcBTIIUi1 3UThhio4xUzSCwaJYTVgIWWaIcb885pKGdikPGaxfeMZUT9RJmS/qmO0jW2Ojw7IOe6W oksg== X-Gm-Message-State: AOJu0YyaB11wOUfbIRtxJ2MUftInbVzzVpBFPl1Sb5tuaqRYrzLKwwxb Q+OtF9nY6g1i3RX+Wez8BRdcQZ3voX/KPQYoPtLmmjmnzgQ= X-Received: by 2002:a05:6808:1288:b0:3ba:9d:9b54 with SMTP id a8-20020a056808128800b003ba009d9b54mr6748632oiw.14.1703479538804; Sun, 24 Dec 2023 20:45:38 -0800 (PST) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id x13-20020a056a000bcd00b006d9c0dd1b26sm218370pfu.15.2023.12.24.20.45.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Dec 2023 20:45:38 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Masahisa Kojima Subject: [PATCH 0/3] fix and refactoring of efi_disk.c Date: Mon, 25 Dec 2023 13:43:53 +0900 Message-Id: <20231225044356.626900-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This series fixes the memory leak issue in lib/efi_loader/efi_disk.c and removes the unused members in struct efi_disk_obj. Masahisa Kojima (3): efi_loader: remove unused members from struct efi_disk_obj efi_loader: avoid pointer access after calling efi_delete_handle efi_loader: create common function to free struct efi_disk_obj lib/efi_loader/efi_disk.c | 50 ++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 22 deletions(-)