]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3bafdce30231aea4bb522c077d9480811464ba24
tree24563cc1b1d29f838c97cf6c1b110625317263c1
parentd30615e4c4c825e7a172b87051053f123195f0b7
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