summaryrefslogtreecommitdiffstats
path: root/block/genhd.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-02-06 16:02:01 +0100
committerJens Axboe <axboe@kernel.dk>2023-02-06 08:43:23 -0700
commit28e538a3093833cbac3e28dd511a8b74629d737a (patch)
tree8467b5b78a01b428b3e473c83940cf6287b97ed3 /block/genhd.c
parent1eb9cd15004fa91b6d1911af9fbaff299d8e9e45 (diff)
downloadlinux-stable-28e538a3093833cbac3e28dd511a8b74629d737a.tar.gz
linux-stable-28e538a3093833cbac3e28dd511a8b74629d737a.tar.bz2
linux-stable-28e538a3093833cbac3e28dd511a8b74629d737a.zip
blk-cgroup: fix freeing NULL blkg in blkg_create
new_blkg can be NULL if the caller didn't pass in a pre-allocated blkg. Don't try to free it in that case. Fixes: 27b642b07a4a ("blk-cgroup: simplify blkg freeing from initialization failure paths") Reported-by: Yi Zhang <yi.zhang@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Link: https://lore.kernel.org/r/20230206150201.3438972-1-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions