From: Tejun Heo Date: Sat, 22 Dec 2012 01:56:57 +0000 (-0800) Subject: mwifiex: don't use [delayed_]work_pending() X-Git-Tag: v3.9-rc1~160^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f5855c979ef0d49a8680b7fbdd3fc8e3093cb73;p=pandora-kernel.git mwifiex: don't use [delayed_]work_pending() Drop work_pending() test from mwifiex_sdio_card_reset(). As work_pending() becomes %false before sdio_card_reset_worker() starts executing, it doesn't really protect anything. reset_host may change between mmc_remove_host() and mmc_add_host(). Make sdio_card_reset_worker() cache the target mmc_host so that it isn't affected by mwifiex_sdio_card_reset() racing with it. Only compile tested. Signed-off-by: Tejun Heo Acked-by: Bing Zhao Cc: linux-wireless@vger.kernel.org --- Reading git-diff-tree failed