diff options
| author | Andrew Goodbody <[email protected]> | 2025-08-04 17:56:56 +0100 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2025-08-27 15:42:08 +0800 |
| commit | 756580d090e5dcb3c45d1f0147cc596ae4efd961 (patch) | |
| tree | 7e42c0de59861945fb4aef5fe07aa3215e2db81a /scripts/const_structs.checkpatch | |
| parent | f4c2a12611d3ffdbd624ededf0fce192f26dddaf (diff) | |
net: fsl-mc: NULL check dflt_dpio before dereference
In dpio_exit there is a NULL check for dflt_dpio but it happens after
dpio_dflt has been dereferenced a number of times already. Instead move
the NULL check to first thing in the function. Also assign NULL to
dflt_dpio after free in both dpio_init and dpio_exit.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
