]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache metadata: Avoid returning cmd->bm wild pointer on error
authorYe Bin <yebin10@huawei.com>
Tue, 1 Sep 2020 06:25:42 +0000 (14:25 +0800)
committerMike Snitzer <snitzer@redhat.com>
Wed, 2 Sep 2020 17:38:24 +0000 (13:38 -0400)
commitbe13b865d84f71c513585b903e5e09cd62cb7af3
treec53e87cd4fa790bad01f45edcdc02b2e34361168
parentafb17e2fdc933002253c93a926e67fabefefabad
dm cache metadata: Avoid returning cmd->bm wild pointer on error

Maybe __create_persistent_data_objects() caller will use PTR_ERR as a
pointer, it will lead to some strange things.

Signed-off-by: Ye Bin <yebin10@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-metadata.c