Commit Graph

270493 Commits

Author SHA1 Message Date
J. Bruce Fields
110d3a25cc nfsd: add get_uint for u32's
commit a007c4c3e9 upstream.

I don't think there's a practical difference for the range of values
these interfaces should see, but it would be safer to be unambiguous.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Cc: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-17 13:14:21 -08:00
Trond Myklebust
f354d0c0ca NFSv4: nfs4_locku_done must release the sequence id
commit 2b1bc308f4 upstream.

If the state recovery machinery is triggered by the call to
nfs4_async_handle_error() then we can deadlock.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-17 13:14:21 -08:00
Ben Hutchings
6fbd3cdb93 nfs: Show original device name verbatim in /proc/*/mount{s,info}
commit 97a5486826 upstream.

Since commit c7f404b ('vfs: new superblock methods to override
/proc/*/mount{s,info}'), nfs_path() is used to generate the mounted
device name reported back to userland.

nfs_path() always generates a trailing slash when the given dentry is
the root of an NFS mount, but userland may expect the original device
name to be returned verbatim (as it used to be).  Make this
canonicalisation optional and change the callers accordingly.

[jrnieder@gmail.com: use flag instead of bool argument]
Reported-and-tested-by: Chris Hiestand <chiestand@salk.edu>
Reference: http://bugs.debian.org/669314
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-17 13:14:21 -08:00
Scott Mayhew
e4648b149c nfsv3: Make v3 mounts fail with ETIMEDOUTs instead EIO on mountd timeouts
commit acce94e68a upstream.

In very busy v3 environment, rpc.mountd can respond to the NULL
procedure but not the MNT procedure in a timely manner causing
the MNT procedure to time out. The problem is the mount system
call returns EIO which causes the mount to fail, instead of
ETIMEDOUT, which would cause the mount to be retried.

This patch sets the RPC_TASK_SOFT|RPC_TASK_TIMEOUT flags to
the rpc_call_sync() call in nfs_mount() which causes
ETIMEDOUT to be returned on timed out connections.

Signed-off-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-17 13:14:21 -08:00
Antonio Quartulli
9c750c9809 mac80211: fix SSID copy on IBSS JOIN
commit badecb001a upstream.

The 'ssid' field of the cfg80211_ibss_params is a u8 pointer and
its length is likely to be less than IEEE80211_MAX_SSID_LEN most
of the time.

This patch fixes the ssid copy in ieee80211_ibss_join() by using
the SSID length to prevent it from reading beyond the string.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
[rewrapped commit message, small rewording]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-17 13:14:21 -08:00
Johannes Berg
03938ad82d mac80211: check management frame header length
commit 4a4f1a5808 upstream.

Due to pskb_may_pull() checking the skb length, all
non-management frames are checked on input whether
their 802.11 header is fully present. Also add that
check for management frames and remove a check that
is now duplicate. This prevents accessing skb data
beyond the frame end.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-17 13:14:21 -08:00
Egbert Eich
2dda2bb41a DRM/Radeon: Fix Load Detection on legacy primary DAC.
commit 83325d0721 upstream.

An uninitialized variable led to broken load detection.

Signed-off-by: Egbert Eich <eich@suse.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-17 13:14:20 -08:00
Javier Cardona
6f8acfdc74 mac80211: don't inspect Sequence Control field on control frames
commit f7fbf70ee9 upstream.

Per IEEE Std. 802.11-2012, Sec 8.2.4.4.1, the sequence Control field is
not present in control frames.  We noticed this problem when processing
Block Ack Requests.

Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Javier Lopez <jlopex@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-17 13:14:20 -08:00
Johannes Berg
4bdd5ed8d9 wireless: drop invalid mesh address extension frames
commit 7dd111e8ee upstream.

The mesh header can have address extension by a 4th
or a 5th and 6th address, but never both. Drop such
frames in 802.11 -> 802.3 conversion along with any
frames that have the wrong extension.

Reviewed-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-17 13:14:20 -08:00
Felix Fietkau
58bca02682 cfg80211: fix antenna gain handling
commit c4a9fafc77 upstream.

No driver initializes chan->max_antenna_gain to something sensible, and
the only place where it is being used right now is inside ath9k. This
leads to ath9k potentially using less tx power than it can use, which can
decrease performance/range in some rare cases.

Rather than going through every single driver, this patch initializes
chan->orig_mag in wiphy_register(), ignoring whatever value the driver
left in there. If a driver for some reason wishes to limit it independent
from regulatory rulesets, it can do so internally.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-17 13:14:20 -08:00
Roland Dreier
f100fdf3a9 target: Don't return success from module_init() if setup fails
commit 0d0f9dfb31 upstream.

If the call to core_dev_release_virtual_lun0() fails, then nothing
sets ret to anything other than 0, so even though everything is
torn down and freed, target_core_init_configfs() will seem to succeed
and the module will be loaded.  Fix this by passing the return value
on up the chain.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-17 13:14:20 -08:00
Stanislaw Gruszka
4a7dfa5ea7 rt2800: validate step value for temperature compensation
commit bf7e1abe43 upstream.

Some hardware has correct (!= 0xff) value of tssi_bounds[4] in the
EEPROM, but step is equal to 0xff. This results on ridiculous delta
calculations and completely broke TX power settings.

Reported-and-tested-by: Pavel Lucik <pavel.lucik@gmail.com>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-17 13:14:20 -08:00
Felix Fietkau
a699cd395b ath9k: fix stale pointers potentially causing access to free'd skbs
commit 8c6e30936a upstream.

bf->bf_next is only while buffers are chained as part of an A-MPDU
in the tx queue. When a tid queue is flushed (e.g. on tearing down
an aggregation session), frames can be enqueued again as normal
transmission, without bf_next being cleared. This can lead to the
old pointer being dereferenced again later.

This patch might fix crashes and "Failed to stop TX DMA!" messages.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-17 13:14:20 -08:00
宋秀杰
f00c63c8c1 phonepad: rt3261 add debug function. 2012-11-17 17:47:43 +08:00
ddl
44dcf491a3 camera: ov5640 touch focus is do well in new firmware 2012-11-17 10:30:42 +08:00
chenxing
034f154ee8 rk2928: set vpu rate=200MHz 2012-11-17 09:56:51 +08:00
hwg
933dbc4f6b modify rk29sdk_wifi_bt_gpio_control_init control bug 2012-11-16 16:07:06 +08:00
ddl
cbb8377ca8 camera: ov5640 add support touch focus 2012-11-16 16:01:31 +08:00
yzq
f99dcc839e only plug in hdmi use screen scale 2012-11-16 15:29:20 +08:00
yxj
406b57ed27 board rk2928:add delay after lcd power io control 2012-11-16 15:01:26 +08:00
yxj
69814e9f25 board rk2928 sdk:fromdos 2012-11-16 15:01:26 +08:00
yxj
d6719d49df rk2928 lcdc: turn off lcd power in hdmi mode 2012-11-16 15:01:26 +08:00
zyc
de071e5c6e fix oops bug when using arm to do scale_crop if preview buffer is not allocated correctly 2012-11-16 14:13:50 +08:00
kfx
828a6c930a mach-rk30/devices.c: fix compile error 2012-11-16 12:08:09 +08:00
kfx
de486385f2 adc: get_def_ref_volt/get_curr_ref_volt --> adc_get_def_ref_volt/adc_get_curr_volt 2012-11-16 11:32:25 +08:00
kfx
171f2967e1 adc: rk30_adc.c: remove 'while(1)' 2012-11-16 10:44:25 +08:00
kfx
82b65d3a7b adc: interface: 'get_def_ref_volt' and 'get_curr_ref_volt' 2012-11-16 10:17:42 +08:00
Jithu Jance
62897416be net: wireless: bcmdhd: Enable P2P probe request handling only during discovery
Change-Id: I2db29d5ed7f66f2a45feb890c81d510fcad24dd2
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-11-15 17:16:59 -08:00
陈辉
5ac33d7c5c to support 4.2_r1 2012-11-15 23:49:19 +08:00
hwg
7126d5f0d9 wifi: add rk29sdk_wifi_bt_gpio_control_init for usb wifi 2012-11-15 20:53:49 +08:00
zyc
b64d2bee8c camera: add focus zone ioctrl id. 2012-11-15 16:37:49 +08:00
许盛飞
4d9a68ab70 the function get_msc_connect_flag change to get_gadget_connect_flag 2012-11-15 14:24:09 +08:00
宋秀杰
7b57320f3c phonepad: rt3261 add speaker and headphone max gain. 2012-11-15 13:56:42 +08:00
ddl
af68afbbae camera: fix struct v4l2_mbus_framefmt have not initiation 2012-11-15 11:52:06 +08:00
yzq
2752baa46b rk fb:fix NO_DUAL_DISP mode hdmi scale problem 2012-11-15 11:33:18 +08:00
ddl
1b48d52cad camera : update manual exposure in capture for ov5640 2012-11-14 16:23:08 +08:00
ddl
042f8d0e9a camera: delete some invalidate message which notice io init failed 2012-11-14 16:23:08 +08:00
ddl
224cc542cc camera: invalidate the limit which scale is invalidat when scale ratio > 2, version v0.x.19 2012-11-14 16:23:08 +08:00
kfx
0e04d68a4c i2c: fix warning: 'warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]' 2012-11-14 14:23:59 +08:00
yangkai
d6fcd0e07e check usb status when disable controller 2012-11-14 11:30:50 +08:00
chenxing
9fa7b95c04 rk30xx: remove safety log in check_volt_correct function 2012-11-14 10:31:22 +08:00
wuhao
2b8c15e987 rk292x sitronix: while perform direction_otation ,determine whether pdata is NULL 2012-11-14 09:55:50 +08:00
yangkai
536cb2cbc8 fix fiq infinite loop when otg id change 2012-11-13 17:56:07 +08:00
yangkai
71dd75a17f usbhcd only add useful channel to freelist 2012-11-13 17:45:23 +08:00
yangkai
47983b37c0 support host intr transfer maxpacket more than 16 2012-11-13 17:30:44 +08:00
yangkai
2eb9bf1916 modify usb otg FIFO config for host perio tx 2012-11-13 17:25:01 +08:00
yangkai
30b358e843 1. use gadget connect status instead of msc_connect_flag; 2. reset gadget delayed status for setconfig 2012-11-13 17:07:23 +08:00
yzq
d303e5bdec rk fb: close backlight when switch_screen at mode NO_DUAL_DISP 2012-11-13 16:56:43 +08:00
张晴
9612a480fe rk3066:slove flash screen from sleep to wakeup 2012-11-13 16:49:41 +08:00
yzq
095540f090 rk fb : fix flash screen when switch hdmi 2012-11-13 16:06:34 +08:00