diff options
| author | Colin Ian King <[email protected]> | 2018-01-02 17:54:19 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-01-09 17:00:13 +0100 |
| commit | 7dde60c06cff611b9f88676ef9e67365dc77b19a (patch) | |
| tree | ffb747668a365cf098afa0efacf7790d8aaf6e10 /scripts/gcc-plugins/sancov_plugin.c | |
| parent | 0edff03d44009f5a459a1d3c6a7915b9952107d1 (diff) | |
slimbus: avoid null pointer dereference on msg
The pointer msg is checked to see if it is null at the start of
the function and jumps to the error exit label reterr that then
dereferences msg when it prints a dev_err error message. Avoid
this potential null pointer dereference by only printing the
error message if msg is not null.
Detected by CoverityScan, CID#1463141 ("Dereference after null check")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions