kmerr.cocci (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) kmerr.cocci (f01701cec8cbb94df209e9705b97abd01c151ba1)
1// SPDX-License-Identifier: GPL-2.0-only
2/// This semantic patch looks for kmalloc etc that are not followed by a
3/// NULL check. It only gives a report in the case where there is some
4/// error handling code later in the function, which may be helpful
5/// in determining what the error handling code for the call to kmalloc etc
6/// should be.
7///
8// Confidence: High
9// Copyright: (C) 2010 Nicolas Palix, DIKU.
10// Copyright: (C) 2010 Julia Lawall, DIKU.
11// Copyright: (C) 2010 Gilles Muller, INRIA/LiP6.
1// SPDX-License-Identifier: GPL-2.0-only
2/// This semantic patch looks for kmalloc etc that are not followed by a
3/// NULL check. It only gives a report in the case where there is some
4/// error handling code later in the function, which may be helpful
5/// in determining what the error handling code for the call to kmalloc etc
6/// should be.
7///
8// Confidence: High
9// Copyright: (C) 2010 Nicolas Palix, DIKU.
10// Copyright: (C) 2010 Julia Lawall, DIKU.
11// Copyright: (C) 2010 Gilles Muller, INRIA/LiP6.
12// URL: http://coccinelle.lip6.fr/
12// URL: https://coccinelle.gitlabpages.inria.fr/website
13// Comments:
14// Options: --no-includes --include-headers
15
16virtual context
17virtual org
18virtual report
19
20@withtest@

--- 53 unchanged lines hidden ---
13// Comments:
14// Options: --no-includes --include-headers
15
16virtual context
17virtual org
18virtual report
19
20@withtest@

--- 53 unchanged lines hidden ---