Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

staging: vt6655: lock MACvWriteBSSIDAddress.

This function selects page 1 and cause intermittent problems on
interrupt handler.

lock call with spin_lock_irqsave.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Cc: <stable@vger.kernel.org> # v3.19+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Malcolm Priestley and committed by
Greg Kroah-Hartman
664a5c1d 032ed34a

+8 -1
+8 -1
drivers/staging/vt6655/device_main.c
··· 1417 1417 1418 1418 priv->current_aid = conf->aid; 1419 1419 1420 - if (changed & BSS_CHANGED_BSSID) 1420 + if (changed & BSS_CHANGED_BSSID) { 1421 + unsigned long flags; 1422 + 1423 + spin_lock_irqsave(&priv->lock, flags); 1424 + 1421 1425 MACvWriteBSSIDAddress(priv->PortOffset, (u8 *)conf->bssid); 1426 + 1427 + spin_unlock_irqrestore(&priv->lock, flags); 1428 + } 1422 1429 1423 1430 if (changed & BSS_CHANGED_BASIC_RATES) { 1424 1431 priv->basic_rates = conf->basic_rates;