]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dca: check against empty dca_domains list before unregister provider
authorMaciej Sosnowski <maciej.sosnowski@intel.com>
Wed, 23 May 2012 15:27:07 +0000 (17:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:42 +0000 (05:38 -0800)
commitf4138277476eb688132caa273102ec287f5035a3
tree3509121acd29c35c7cff9a0b437b3ffea182c093
parent255ad6f9222cc28a7c76157fdeda8aa46029c34d
dca: check against empty dca_domains list before unregister provider

commit c419fcfd071cf34ba00f9f65282583772d2655e7 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: Jiang Liu <jiang.liu@huawei.com>
Tested-by: Gaohuai Han <hangaohuai@huawei.com>
Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <djbw@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dca/dca-core.c