]> 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)
committerDan Williams <djbw@fb.com>
Tue, 18 Dec 2012 22:25:19 +0000 (14:25 -0800)
commit0d312847e3429bbc349d53e27d6f0b2efbde3dab
tree0472c90ad8d4050b1b1ad499d7737600ac3ab6b7
parent9e2133a764619f553d2538e1402df269d1cf851b
dca: check against empty dca_domains list before unregister provider

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.

Cc: <stable@vger.kernel.org>
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>
drivers/dca/dca-core.c