diff options
author | Colin Ian King <[email protected]> | 2017-03-11 19:09:45 +0000 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2017-05-17 09:44:53 -0400 |
commit | 7e1b9521f5a8356553f5e58b07952bf346632ea4 (patch) | |
tree | 9a740e30fef998d6c173c2471263f2ad8ba343eb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 13840d38016203f0095cd547b90352812d24b787 (diff) |
dm cache: handle kmalloc failure allocating background_tracker struct
Currently there is no kmalloc failure check on the allocation of
the background_tracker struct in btracker_create(), and so a NULL return
will lead to a NULL pointer dereference. Add a NULL check.
Detected by CoverityScan, CID#1416587 ("Dereference null return value")
Fixes: b29d4986d ("dm cache: significant rework to leverage dm-bio-prison-v2")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions