scripts: coccinelle: Fix description of badty.cocci
PATCH 1/1 scripts: coccinelle: Fix description of badty.cocci
Summary was copy and pasted from array_size.cocci.
Signed-off-by Michael Stefaniuc <[email protected]>
--- scripts/coccinelle/misc/badty.cocci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/coccinelle/misc/badty.cocci +1 -1
@@ -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
Signature · 1 line
2.20.1
Quoted 12 lines · Michael Stefaniuc
Summary was copy and pasted from
array_size.cocci.Signed-off-by Michael Stefaniuc <[email protected]>--- scripts/coccinelle/misc/badty.cocci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/coccinelle/misc/badty.cocci +0
-0
scripts/coccinelle/misc/badty.cocci line 1
Quoted 2 lines
scripts/coccinelle/misc/badty.cocci +1
-1@@ -1,4 +1,4 @@ -/// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element +/// Correct the size argument to alloc functions
Oops! Thanks.
Acked-by Julia Lawall <[email protected]>
Quoted 7 lines
scripts/coccinelle/misc/badty.cocci +0
-1/// //# 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 --2.20.1
Quoted 4 lines · Michael Stefaniuc
Summary was copy and pasted from
array_size.cocci.Signed-off-by Michael Stefaniuc <[email protected]>
Applied to linux-kbuild/fixes. Thanks.
Quoted 17 lines
--- scripts/coccinelle/misc/badty.cocci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/coccinelle/misc/badty.cocci +1
-2@@ -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 --2.20.1
Signature · 2 lines
Best Regards Masahiro Yamada