Skip to content

Commit

Permalink
Staging: rt2860sta: prevent a panic when disabling when associated
Browse files Browse the repository at this point in the history
This fixes a panic which is triggered when the hardware "disappears" from
beneath the driver, i.e. when wireless is toggled off via Fn-F2 on various
EeePC models.

Ref. bug report http://bugzilla.kernel.org/show_bug.cgi?id=13390
          panic http://bugzilla.kernel.org/attachment.cgi?id=21928

Signed-off-by: Darren Salt <linux@youmustbejoking.demon.co.uk>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Darren Salt authored and Greg Kroah-Hartman committed Oct 14, 2009
1 parent 5f26799 commit 0af4916
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/rt2860/common/cmm_data_2860.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ int RtmpPCIMgmtKickOut(
ULONG SwIdx = pAd->MgmtRing.TxCpuIdx;

pTxD = (PTXD_STRUC) pAd->MgmtRing.Cell[SwIdx].AllocVa;
if (!pTxD)
return 0;

pAd->MgmtRing.Cell[SwIdx].pNdisPacket = pPacket;
pAd->MgmtRing.Cell[SwIdx].pNextNdisPacket = NULL;
Expand Down

0 comments on commit 0af4916

Please sign in to comment.