From: Michael Stefaniuc Date: Tue, 26 Mar 2019 21:22:00 +0000 (+0100) Subject: scripts: coccinelle: Fix description of badty.cocci X-Git-Tag: v5.15~6692^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7fcddf7c004140052d6f72273a0455239ad49112;p=platform%2Fkernel%2Flinux-starfive.git scripts: coccinelle: Fix description of badty.cocci Summary was copy and pasted from array_size.cocci. Signed-off-by: Michael Stefaniuc Acked-by: Julia Lawall Signed-off-by: Masahiro Yamada --- diff --git a/scripts/coccinelle/misc/badty.cocci b/scripts/coccinelle/misc/badty.cocci index 481cf30..0847036 100644 --- a/scripts/coccinelle/misc/badty.cocci +++ b/scripts/coccinelle/misc/badty.cocci @@ -1,4 +1,4 @@ -/// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element +/// Correct the size argument to alloc functions /// //# This makes an effort to find cases where the argument to sizeof is wrong //# in memory allocation functions by checking the type of the allocated memory