Commit f4138277 authored by Maciej Sosnowski's avatar Maciej Sosnowski Committed by Greg Kroah-Hartman
Browse files

dca: check against empty dca_domains list before unregister provider



commit c419fcfd upstream.

When providers get blocked unregister_dca_providers() is called ending up
with dca_providers and dca_domain lists emptied. Dca should be prevented from
trying to unregister any provider if dca_domain list is found empty.

Reported-by: default avatarJiang Liu <jiang.liu@huawei.com>
Tested-by: default avatarGaohuai Han <hangaohuai@huawei.com>
Signed-off-by: default avatarMaciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: default avatarDan Williams <djbw@fb.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 255ad6f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment