From: Markus Elfring <Markus.Elfring@web.de>
To: Evgeny Novikov <novikov@ispras.ru>,
Anton Vasilyev <vasilyev@ispras.ru>,
ldv-project@linuxtesting.org, linux-arm-msm@vger.kernel.org,
linux-media@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Todor Tomov <todor.too@gmail.com>
Subject: Re: [PATCH] media: camss: fix memory leaks on error handling paths in probe
Date: Thu, 23 Jul 2020 21:51:23 +0200 [thread overview]
Message-ID: <64581990-1f68-131d-2e38-8d3e0b9cbd2a@web.de> (raw)
> camss_probe() does not free camss on error handling paths. The patch
> introduces an additional error label for this purpose.
* I suggest to use an imperative wording for the change description.
* Would you like to use also a jump target like the following
at the end of this function implementation?
+e_nomem:
+ ret = -ENOMEM;
+ goto err_free;
* Will the tag “Fixes” become helpful for the commit message?
> Besides, it
> removes call of v4l2_async_notifier_cleanup() from
> camss_of_parse_ports() since its caller, camss_probe(), cleans up all
> its resources itself.
I propose to offer such a change by a separate update step.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=d15be546031cf65a0fc34879beca02fd90fe7ac7#n138
Regards,
Markus
next reply other threads:[~2020-07-23 19:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-23 19:51 Markus Elfring [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-07-23 17:46 [PATCH] media: camss: fix memory leaks on error handling paths in probe Evgeny Novikov
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=64581990-1f68-131d-2e38-8d3e0b9cbd2a@web.de \
--to=markus.elfring@web.de \
--cc=agross@kernel.org \
--cc=bjorn.andersson@linaro.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=ldv-project@linuxtesting.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=novikov@ispras.ru \
--cc=todor.too@gmail.com \
--cc=vasilyev@ispras.ru \
/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;
as well as URLs for NNTP newsgroup(s).