From: Stanislaw Gruszka Date: Wed, 20 Apr 2011 14:02:58 +0000 (+0200) Subject: iwlwifi: fix possible data overwrite in hcmd callback X-Git-Tag: v3.0-rc1~377^2~161^2^2~110 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2624e96ce16bacae0e422d5775eac6d4fc33239a;p=pandora-kernel.git iwlwifi: fix possible data overwrite in hcmd callback My commit 3598e1774c94e55c71b585340e7dc4538f310e3f "iwlwifi: fix enqueue hcmd race conditions" move hcmd callback after command queue reclaim, to avoid call it with hcmd_lock. But since queue read index was updated, cmd data can be overwritten. Fix problem by calling callback before taking hcmd_lock and queue reclaim. Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi Guy Signed-off-by: John W. Linville --- Reading git-diff-tree failed