From 43b7f2ddeed37fddc483ca4e31384544316a2dfd Mon Sep 17 00:00:00 2001 From: proski Date: Wed, 3 Aug 2011 00:47:06 +0000 Subject: [PATCH] Fix certain NULL dereference in disabled XR code Make it even more clear that the code is disabled. Found by coccinelle. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4155 0192ed92-7a03-0410-a25b-9323aeb14dbd --- ath/if_ath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ath/if_ath.c b/ath/if_ath.c index 8d0716d..3ff78bc 100644 --- a/ath/if_ath.c +++ b/ath/if_ath.c @@ -6207,7 +6207,7 @@ ath_node_move_data(const struct ieee80211_node *ni) /* NB: last descriptor */ ds = prev->bf_desc; #endif - ts = &bf->bf_dsstatus.ds_txstat; + ts = &prev->bf_dsstatus.ds_txstat; status = ath_hal_txprocdesc( ah, ds, ts ); @@ -6402,7 +6402,7 @@ ath_node_move_data(const struct ieee80211_node *ni) DPRINTF(sc, ATH_DEBUG_XMIT_PROC, "moved %d buffers from XR to NORMAL\n"m count); } -#endif +#endif /* NOT_YET */ return 0; } #endif