hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/scripts/coccinelle/misc/badty.cocci
....@@ -1,4 +1,5 @@
1
-/// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element
1
+// SPDX-License-Identifier: GPL-2.0-only
2
+/// Correct the size argument to alloc functions
23 ///
34 //# This makes an effort to find cases where the argument to sizeof is wrong
45 //# in memory allocation functions by checking the type of the allocated memory
....@@ -8,7 +9,7 @@
89 //# may need some reformatting.
910 //
1011 // Confidence: Moderate
11
-// Copyright: (C) 2014 Himangi Saraogi. GPLv2.
12
+// Copyright: (C) 2014 Himangi Saraogi.
1213 // Comments:
1314 // Options:
1415