From: Dan Carpenter <error27@gmail.com>
To: linfordWu <linfordwu@163.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: vme_user: fix probe error path resource handling
Date: Sat, 31 Oct 2026 16:50:08 +0300 [thread overview]
Message-ID: <auXyEB82y-I-j7Zc@stanley.mountain> (raw)
In-Reply-To: <20261031133433.1826133-1-linfordwu@163.com>
On Sat, Oct 31, 2026 at 09:34:33PM +0800, linfordWu wrote:
> The probe error paths free the current master or slave resource before
> jumping to cleanup loops that free it again. They also pass NULL
> resources to the VME release helpers when window allocation fails, and
> pass a NULL buffer to vme_free_consistent() when buffer allocation
> fails.
>
> Let the common cleanup paths own all resource releases and guard the
> resource and buffer pointers so each failure path only releases objects
> that were allocated successfully.
>
> Signed-off-by: linfordWu <linfordwu@163.com>
This driver has been removed from the latest tree.
regards,
dan carpenter
prev parent reply other threads:[~2026-10-31 13:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-31 13:34 linfordWu
2026-10-31 13:50 ` Dan Carpenter [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=auXyEB82y-I-j7Zc@stanley.mountain \
--to=error27@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linfordwu@163.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/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®