blkcg: add missing NULL check in ioc_cpd_alloc()
authorTejun Heo <tj@kernel.org>
Fri, 30 Aug 2019 13:10:58 +0000 (06:10 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Aug 2019 13:16:19 +0000 (07:16 -0600)
commite916ad29d96485e5aa3d3237bfeab1522c713d5e
tree24563cc1b1d29f838c97cf6c1b110625317263c1
parent3532e7227243beb0b782266dc05c40b6184ad051
blkcg: add missing NULL check in ioc_cpd_alloc()

ioc_cpd_alloc() forgot to check NULL return from kzalloc().  Add it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iocost.c