13 Jan, 2012
2 commits
-
commit a9b3cd7f32 (rcu: convert uses of rcu_assign_pointer(x, NULL) to
RCU_INIT_POINTER) did a lot of incorrect changes, since it did a
complete conversion of rcu_assign_pointer(x, y) to RCU_INIT_POINTER(x,
y).We miss needed barriers, even on x86, when y is not NULL.
Signed-off-by: Eric Dumazet
CC: Stephen Hemminger
CC: Paul E. McKenney
Signed-off-by: David S. Miller
12 Jan, 2012
5 commits
-
Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
No need to lock soft irqs under bond_alb_xmit()
which already has softirq disabled.Changes:
1. add non-bh/bh version to tlb_clear_slave()2. represent BH and non BH hash table locks
_lock_rx_hashtbl_bh/_unlock_rx_hashtbl_bh
_lock_rx_hashtbl/_unlock_rx_hashtbl
_lock_tx_hashtbl_bh/_unlock_tx_hashtbl_bh
_lock_tx_hashtbl/_unlock_tx_hashtblSigned-off-by: Maxim Uvarov
Signed-off-by: Cong Wang
Signed-off-by: David S. Miller -
Since:
commit 816c04fe7ef01dd9649f5ccfe796474db8708be5
Author: Christian Lamparter
Date: Sat Apr 30 15:24:30 2011 +0200mac80211: consolidate MIC failure report handling
is possible to that we dereference rx->key == NULL when driver set
RX_FLAG_MMIC_STRIPPED and not RX_FLAG_IV_STRIPPED and we are in
promiscuous mode. This happen with rt73usb and rt61pci at least.Before the commit we always check rx->key against NULL, so I assume
fix should be done in mac80211 (also mic_fail path has similar check).References:
https://bugzilla.redhat.com/show_bug.cgi?id=769766
http://rt2x00.serialmonkey.com/pipermail/users_rt2x00.serialmonkey.com/2012-January/004395.htmlCc: stable@vger.kernel.org # 3.0+
Reported-by: Stuart D Gathman
Reported-by: Kai Wohlfahrt
Signed-off-by: Stanislaw Gruszka
Signed-off-by: John W. Linville -
My patch to validate station flags broke compatibility
with the old station flags setting where all flags are
always set at once since it always set the mask as all
possible flags which ended up being rejected later in
the station add/modify code.Fix by parsing only the current flags in the old flags
attribute -- new applications and new flags should use
(and will now require) the new flags attribute where
the mask is given by the application.Reported-and-tested-by: Thomas Hilber
Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
11 Jan, 2012
32 commits
-
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Acked-by: Lennert Buytenhek
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Acked-by: Nicolas Ferre
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
In kernel v3.2 initialization sequence for Asix 88178 devices was changed so
that hardware is reseted on every time interface is brought up (ifconfig up),
instead just at USB probe time. This causes problem with setting custom MAC
address to device as ax88178_reset causes reload of MAC address from EEPROM.This patch fixes the issue by rewriting MAC address at end of ax88178_reset.
Signed-off-by: Jussi Kivilinna
Acked-by: Grant Grundler
Cc: Allan Chou
Cc: stable
Signed-off-by: David S. Miller -
In kernel v3.2 initialization sequence for Asix 88772 devices was changed so
that hardware is reseted on every time interface is brought up (ifconfig up),
instead just at USB probe time. This causes problem with setting custom MAC
address to device as ax88772_reset causes reload of MAC address from EEPROM.This patch fixes the issue by rewriting MAC address at end of ax88772_reset.
Signed-off-by: Jussi Kivilinna
Acked-by: Grant Grundler
Cc: Allan Chou
Cc: stable
Signed-off-by: David S. Miller -
Fix the following build warning:
warning: (ISDN_PPP) selects SLHC which has unmet direct dependencies (NETDEVICES)
Signed-off-by: Fabio Estevam
Signed-off-by: David S. Miller -
Otherwise the output looks like this:
...
STMMAC - user ID: 0x10, Synopsys ID: 0x32
No HW DMA feature register supported
Normal descriptors
Remote wake-up capable
Checksum Offload Engine supported
No MAC Management Counters availableIP-Config: Complete:
device=eth0, addr=192.168.20.42, mask=255.255.0.0, gw=192.168.1.254,
...Signed-off-by: Stefan Roese
Cc: Giuseppe Cavallaro
Acked-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller -
Fix this error:
CC drivers/net/ethernet/stmicro/stmmac/mmc_core.o
drivers/net/ethernet/stmicro/stmmac/mmc_core.c: In function 'dwmac_mmc_ctrl':
drivers/net/ethernet/stmicro/stmmac/mmc_core.c:143:2: error: implicit
declaration of function 'pr_debug' [-Werror=implicit-function-declaration]Signed-off-by: Stefan Roese
Cc: Giuseppe Cavallaro
Acked-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller -
The commit "ath9k: Fix invalid noisefloor reading due to channel update"
preserves the current channel noisefloor readings before updating
channel type at the same channel index. It is also updating the curchan
pointer. As survey updation is also referring curchan pointer to fetch
the appropriate index, which might leads to invalid memory access. This
patch partially reverts the change and stores the noise floor history
buffer before updating channel type w/o updating curchan.Cc: stable@kernel.org
Cc: Gary Morain
Cc: Paul Stewart
Reported-by: Mohammed Shafi Shajakhan
Signed-off-by: Rajkumar Manoharan
Signed-off-by: John W. Linville -
If the memory allocation 'nvram_ularray = kmalloc(varsize,
GFP_ATOMIC);' fails we'll leak the memory allocated to 'vbuffer' when
we return -ENOMEM from the function.This patch resolves the leak by kfree()'ing the allocated memory
before the return.Signed-off-by: Jesper Juhl
Acked-by: Arend van Spriel
Signed-off-by: John W. Linville -
also remove an unused macro and a function declaration
Signed-off-by: Mohammed Shafi Shajakhan
Signed-off-by: John W. Linville -
When downloading firmware into the device, the driver fails to check the
return when allocating an skb. When the allocation fails, a BUG can be
generated, as seen in https://bugzilla.redhat.com/show_bug.cgi?id=771656.Signed-off-by: Larry Finger
Cc: Stable
Signed-off-by: John W. Linville
10 Jan, 2012
1 commit
-
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
vfs: new helper - d_make_root()
dcache: use a dispose list in select_parent
ceph: d_alloc_root() may fail
ext4: fix failure exits
isofs: inode leak on mount failure