From: Dan Carpenter <dan.carpenter@oracle.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] media: i2c: ov02a10: fix an uninitialized return
Date: Mon, 07 Dec 2020 18:34:26 +0000 [thread overview]
Message-ID: <20201207183426.GY2767@kadam> (raw)
In-Reply-To: <X84nbdgv0a/ak2ef@mwanda>
On Mon, Dec 07, 2020 at 05:56:15PM +0200, Andy Shevchenko wrote:
> +Cc: some people who involved in different kernel source checkers
>
> On Mon, Dec 7, 2020 at 3:19 PM Sakari Ailus
> <sakari.ailus@linux.intel.com> wrote:
> > On Mon, Dec 07, 2020 at 04:00:29PM +0300, Dan Carpenter wrote:
> > > The "ret" variable isn't set on the no-op path where we are setting to
> > > on/off and it's in the on or off state already.
> > >
> > > Fixes: 91807efbe8ec ("media: i2c: add OV02A10 image sensor driver")
> > > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> >
> > Thanks for the patch.
> >
> > This issue has been fixed by another patch here:
> >
> > <URL:https://patchwork.linuxtv.org/project/linux-media/patch/20201204082037.1658297-1-arnd@kernel.org/>
>
> This has been reported by 3 or 4 different people. I'm wondering if
> it's possible to introduce a common database to somehow reduce the
> amount of patches against the same findings.
Tell your devs to stop introducing bugs... :P This is your punishment.
Linus turned off GCC warnings for uninitialized variables earlier this
year. He got annoyed because it doesn't work half the time depending on
the version and optimization level. I sort of disagree with that,
because I reporting these bugs is taking up a lot of my time. It has
definitely gotten worse from my perspective.
The best solution would be for the original developer to run Smatch on
their code. Another option would be to make a script where you give it
a function name and it searches patches within the last week on
lore.kernel.org
regards,
dan carpenter
prev parent reply other threads:[~2020-12-07 18:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-07 13:00 [PATCH] media: i2c: ov02a10: fix an uninitialized return Dan Carpenter
2020-12-07 13:00 ` Dan Carpenter
2020-12-07 13:14 ` Sakari Ailus
2020-12-07 13:14 ` Sakari Ailus
2020-12-07 15:56 ` Andy Shevchenko
2020-12-07 16:01 ` Dmitry Vyukov
2020-12-07 16:01 ` Dmitry Vyukov
2020-12-07 18:34 ` 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=20201207183426.GY2767@kadam \
--to=dan.carpenter@oracle.com \
--cc=kernel-janitors@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.