lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 13 Feb 2019 16:40:53 +0100
From:   Markus Elfring <>
To:     Wen Yang <>
Cc:     Coccinelle <>,,
        LKML <>,
        Gilles Muller <>,
        Julia Lawall <>,
        Masahiro Yamada <>,
        Michal Marek <>,
        Nicolas Palix <>,
        Wen Yang <>,
        Xue Zhihong <>,
        Yi Wang <>
Subject: Re: [PATCH v3] coccinelle: semantic patch for missing put_device()

> Reviewed-by: Markus Elfring <>

I have got doubts that my code review comments qualify already
for this tag.

> Cc:

I assume that Masahiro Yamada will also need to get explicitly informed
for a possible patch integration.

> v3->v2:
> - reduction of a bit of redundant C code within SmPL search specifications.
> - consider the message construction without using the extra Python variable “msg”

I find it nice that you would like to take this information into account.

> +    when != e4 = (T1)platform_get_drvdata(id)
> +(
> +

Should a blank line be omitted at such a source code place?

> +  return
> +(    id
> +|    (T2)dev_get_drvdata(&id->dev)
> +|    (T3)platform_get_drvdata(id)
> +);

It seems that you would like to express a different coding style.
Would anybody like to reconsider the position once more for semicolons
in nested disjunctions for such a SmPL search specification?

>[0], "ERROR: missing put_device; of_find_device_by_node on line " + p1[0].line + " and return without releasing.")

Your willingness for such a rearrangement is interesting.
How do you think about to move the long message parameter to a subsequent line?


Powered by blists - more mailing lists