mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Haoxiang Li <haoxiang_li2024@163.com>
Cc: ojeda@kernel.org, andy@kernel.org, geert@linux-m68k.org,
	pmarques@grupopie.com, akpm@linux-foundation.org,
	maxextreme@gmail.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] auxdisplay: cfag12864bfb: Fix init cleanup and simplify error paths
Date: Tue, 17 Nov 2026 12:33:49 +0200	[thread overview]
Message-ID: <avwtjc99XzpRzj4z@ashevche-desk.local> (raw)
In-Reply-To: <20261117102728.1304012-1-haoxiang_li2024@163.com>

On Tue, Nov 17, 2026 at 06:27:28PM +0800, Haoxiang Li wrote:
> If initialization fails after cfag12864b_enable() succeeds, LCD
> refreshing remains enabled. A subsequent attempt to load the
> framebuffer module can fail because refreshing is still marked
> as in use.
> 
> Flatten the initialization flow and introduce cleanup labels to
> release resources in reverse order. Call cfag12864b_disable() on
> failures after refreshing has been enabled.

Can't you use platform_device_register_full()?

-- 
With Best Regards,
Andy Shevchenko



      reply	other threads:[~2026-11-17 10:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17 10:27 Haoxiang Li
2026-11-17 10:33 ` Andy Shevchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=avwtjc99XzpRzj4z@ashevche-desk.local \
    --to=andriy.shevchenko@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=andy@kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=haoxiang_li2024@163.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maxextreme@gmail.com \
    --cc=ojeda@kernel.org \
    --cc=pmarques@grupopie.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®