From: Markus Elfring <Markus.Elfring@web.de>
To: Chuhong Yuan <hslester96@gmail.com>, linux-media@vger.kernel.org
Cc: LKML <linux-kernel@vger.kernel.org>,
Hans Verkuil <hverkuil-cisco@xs4all.nl>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Dan Carpenter <dan.carpenter@oracle.com>
Subject: Re: media: go7007: fix a miss of snd_card_free
Date: Fri, 6 Dec 2019 18:00:24 +0100 [thread overview]
Message-ID: <aa5555c7-48fb-11f9-d79b-5d72bee55ff9@web.de> (raw)
In-Reply-To: <CANhBUQ2p4hkSUgW8ZpA6+M_RsuN72E+v-XN=1a=m-Xf_++ZkdQ@mail.gmail.com>
> I think using goto is really much better than freeing after every error.
Thanks for your positive feedback.
> I will send a new version if others also agree with this pattern.
* The error handling pattern would be supported by the Linux coding style.
The agreement on corresponding changes can occasionally become more challenging.
* I would interpret Dan Carpenter's review comment (from 2017-09-19) in the way
that he should be mentioned by the tag “Reported-by” in a subsequent patch.
https://lkml.org/lkml/2017/9/19/115
Regards,
Markus
prev parent reply other threads:[~2019-12-06 17:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-06 12:07 [PATCH] media: go7007: fix a miss of snd_card_free Chuhong Yuan
2019-12-06 14:10 ` Markus Elfring
2019-12-06 14:37 ` Chuhong Yuan
2019-12-06 17:00 ` Markus Elfring [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=aa5555c7-48fb-11f9-d79b-5d72bee55ff9@web.de \
--to=markus.elfring@web.de \
--cc=dan.carpenter@oracle.com \
--cc=hslester96@gmail.com \
--cc=hverkuil-cisco@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/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