Skip to content
Commit 7e1b9521 authored by Colin Ian King's avatar Colin Ian King Committed by Mike Snitzer
Browse files

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: b29d4986 ("dm cache: significant rework to leverage dm-bio-prison-v2")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 13840d38
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment