diff options
| author | Randy Dunlap <[email protected]> | 2020-06-25 20:29:43 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-06-26 00:27:37 -0700 |
| commit | 786ae133e07f2a6b352a0efad16b555ee45a2898 (patch) | |
| tree | 5f0ff094c1b2278709781016721487fd657f7d91 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 9277f8334ffc719fe922d776444d6e4e884dbf30 (diff) | |
lib: fix test_hmm.c reference after free
Coccinelle scripts report the following errors:
lib/test_hmm.c:523:20-26: ERROR: reference preceded by free on line 521
lib/test_hmm.c:524:21-27: ERROR: reference preceded by free on line 521
lib/test_hmm.c:523:28-35: ERROR: devmem is NULL but dereferenced.
lib/test_hmm.c:524:29-36: ERROR: devmem is NULL but dereferenced.
Fix these by using the local variable 'res' instead of devmem.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Randy Dunlap <[email protected]>
Reviewed-by: Ralph Campbell <[email protected]>
Cc: Jérôme Glisse <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions