Colin Ian King 7e1b9521f5 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 <colin.king@canonical.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2017-05-17 09:44:53 -04:00
..
2017-05-05 18:49:20 -07:00
2017-04-08 11:25:38 -06:00
2017-05-05 18:49:20 -07:00
2016-11-01 09:43:26 -06:00
2017-05-08 17:15:12 -07:00
2017-05-05 18:49:20 -07:00
2017-05-05 18:49:20 -07:00
2016-08-07 14:41:02 -06:00
2017-05-05 18:49:20 -07:00
2017-05-01 14:09:21 -07:00
2017-05-01 14:09:21 -07:00
2017-04-08 11:25:38 -06:00
2017-05-01 14:09:21 -07:00
2015-08-13 12:31:57 -06:00
2017-05-01 14:09:21 -07:00
2017-05-01 14:09:21 -07:00
2017-05-01 14:09:21 -07:00