mwifiex: store mwifiex_ds_misc_subsc_evt in mwifiex_private
authorJeff Disher <disher@chromium.org>
Fri, 31 Aug 2012 01:20:55 +0000 (18:20 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 7 Sep 2012 19:03:44 +0000 (15:03 -0400)
commit908fe11314be4744fb303179a1c46b22dcdc5b87
tree98f7f7fa1270e08a3454919448918f78a71d7807
parentcbaa177d2b2f9364c7b9250d8ced75fae326c052
mwifiex: store mwifiex_ds_misc_subsc_evt in mwifiex_private

Since mwifiex_ds_misc_subsc_evt is used in an asynchronous case,
store the structure in the long-lived mwifiex_private instead of
on the calling stack.

This fixes a problem where the response of the asynchronous
operation would corrupt a stack frame potentially in use by
a different thread.

Signed-off-by: Jeff Disher <disher@chromium.org>
Reviewed-by: Sam Leffler <sleffler@chromium.org>
Tested-by: Jeff Disher <disher@chromium.org>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/sta_cmdresp.c