| Message ID | 20260416023021.626949-22-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306681; bh=clS1iSjASg9neRx4O5J1djPEgSVEotZ9bvkIoA3995s=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=KWXnOr88RInsbYr/GchlueMF0CrWb7dWpTN7B0qdxJTm8meiF+eJIWGJLWYgOpo4G capP4fDkmIanthNEDuMmXkrMHjLIoCAA3wClyUp+vPRmTyAwfRbzf+wWGDEFC+a6W9 LEqeAOrbsF8NpJF3gzztMjYXGfJzRgZ87iFz8dR8= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 35DBE6A4AE for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:21 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id s-bwT5J55AT7 for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:21 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306678; bh=clS1iSjASg9neRx4O5J1djPEgSVEotZ9bvkIoA3995s=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=HWvt+pmuxw2/uch6AEnQLDJAzXTGdK7vfLKYhma52TGn+V7pTo/lqjoUnaDvwIT5L 9SkbyLXCRhrR48iOHxcbmK5Lb9HsrYVcAdT0aRE34OvJICUi1bOAYnwgV/8RejWxjb PL8Gdgl3qKEGJ447X177BkM1kjIplzQAQAGYZha0= Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 974226A4C0 for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:18 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306675; bh=UMLpGSClY2z6uIOoL0PJ774kTQliG6I/KYKX0+RdveE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OKsntWU5UooS5UCbgnnOtlT9qmZfKlBhBiiTlXXUZLnuob8xfipfxtEMNUZk0QX0P tr8EZWCqs9y5YW02ERiNjlWtTI5kzm3Jr/vbPqgvgMH7otbSTz8gTeUWpz+Ypwn1Df SFYDK3/srdKqNBR7/iWmalzfdez7go8pfUaKGTGo= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8BFFF6A4AE; Wed, 15 Apr 2026 20:31:15 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id yfUNgvBsvWnO; Wed, 15 Apr 2026 20:31:15 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306670; bh=WeprXfQsiOrd4M9SbYdWTaQrJ//p+pPfkMCjuTpOoEg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FMnMvbRFczjjvhm79uHH5KGZLA7AmTEjXfVjVuD4ekySIfZFBQirVeOj0KcDbuZ6G sPOR/2OKIVEjBh3p/Ct6RbJIEXofxxJ1m+cud6J/OLqnY9QMIVYek5CpLxb3/4Kdg1 j8ELGsOMkGQG+7DAC8GhCuVz8dDRqjZUHFMaa2kY= Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 09D366A4BF; Wed, 15 Apr 2026 20:31:09 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 15 Apr 2026 20:29:46 -0600 Message-ID: <20260416023021.626949-22-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260416023021.626949-1-sjg@u-boot.org> References: <20260416023021.626949-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: DUB64B7NTHVBWX4KOKXFOBLHUO73SIRY X-Message-ID-Hash: DUB64B7NTHVBWX4KOKXFOBLHUO73SIRY X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 21/33] boot: cedit: Leave manual-sync off with exit without save List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/DUB64B7NTHVBWX4KOKXFOBLHUO73SIRY/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
Fix memory leaks and test pollution in sandbox tests
|
|
Commit Message
Simon Glass
April 16, 2026, 2:29 a.m. UTC
From: Simon Glass <sjg@chromium.org> cedit_run() calls expo_enter_mode() which sets video_set_manual_sync() to true, pairing with expo_exit_mode() which clears it again. Error paths inside the loop call expo_exit_mode() before returning, but the normal exit (exp->done becoming true) falls through to the bottom of the function and skips it, so when the user quits without saving we return -EACCES with manual-sync still active. Any later code that relies on video_sync() to copy fb to copy_fb then silently does nothing. The dm_test_video_silence test sees this as fb != copy_fb after its own video_sync and fails, purely because an earlier test exercised cedit. Call expo_exit_mode() once the loop has finished, before evaluating the save/return paths, so the sync flag is always restored. Signed-off-by: Simon Glass <sjg@chromium.org> --- boot/cedit.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/boot/cedit.c b/boot/cedit.c index f047849e19d..7dc369008ee 100644 --- a/boot/cedit.c +++ b/boot/cedit.c @@ -268,6 +268,8 @@ int cedit_run(struct expo *exp) } } while (!exp->done); + expo_exit_mode(exp); + if (ret) return log_msg_ret("end", ret); if (!exp->save)