[Linux-kernel-mentees] [PATCH] checkpatch: Fix unescaped left brace

Dwaipayan Ray dwaipayanray1 at gmail.com
Sun Nov 15 20:21:38 UTC 2020

On Mon, Nov 16, 2020 at 1:43 AM Lukas Bulwahn <lukas.bulwahn at gmail.com> wrote:
> On Sun, Nov 15, 2020 at 6:16 PM Dwaipayan Ray <dwaipayanray1 at gmail.com> wrote:
> >
> > There is an unescaped left brace in a regex in OPEN_BRACE
> > check. This throws a runtime error when checkpatch is run
> > with --fix flag and the OPEN_BRACE check is executed.
> >
> > Fix it by escaping the left brace.
> >
> Can you find with 'git blame' which commit introduced this issue and
> add a Fixes: tag?
> Other than that, it looks good.

Apparently it was introduced back in 2014 when it was first written
by commit 8d1824780f2f. I guess perl depreciated allowing unescaped
left braces at some point.

I will add that and send it off.


More information about the Linux-kernel-mentees mailing list