[PATCH 1/4] usbdevfs: Correct amount of data copied to user in processcompl_compat

2012-07-04 Thread Hans de Goede
iso data buffers may have holes in them if some packets were short, so for iso urbs we should always copy the entire buffer, just like the regular processcompl does. Signed-off-by: Hans de Goede Acked-by: Alan Stern CC: stable@vger.kernel.org --- drivers/usb/core/devio.c | 10 +++--- 1 fi

Re: [Ocfs2-devel] [PATCH v4 2/2] ocfs2: clear unaligned io flag when dio fails

2012-07-04 Thread Joel Becker
On Wed, Jun 27, 2012 at 05:09:55PM +0800, Junxiao Bi wrote: > The unaligned io flag is set in the kiocb when an unaligned > dio is issued, it should be cleared even when the dio fails, > or it may affect the following io which are using the same > kiocb. > > Signed-off-by: Junxiao Bi > Cc: stable

Re: [Ocfs2-devel] [PATCH v4 2/2] ocfs2: clear unaligned io flag when dio fails

2012-07-04 Thread Junxiao Bi
On 07/04/2012 03:34 PM, Joel Becker wrote: > On Wed, Jun 27, 2012 at 05:09:55PM +0800, Junxiao Bi wrote: >> The unaligned io flag is set in the kiocb when an unaligned >> dio is issued, it should be cleared even when the dio fails, >> or it may affect the following io which are using the same >> ki

Re: [PATCH] mm: setup pageblock_order before it's used by sparse

2012-07-04 Thread Mel Gorman
On Wed, Jul 04, 2012 at 09:40:30AM +0800, Jiang Liu wrote: > > It's a bit ugly calling set_pageblock_order() from both sparse_init() > > and from free_area_init_core(). Can we find a single place from which > > to call it? It looks like here: > > > > --- a/init/main.c~a > > +++ a/init/main.c > >

Re: [PATCH v2] ARM: Orion: Fix WDT compile for Dove and MV78xx0

2012-07-04 Thread Arnd Bergmann
On Friday 29 June 2012, Nicolas Pitre wrote: > On Fri, 29 Jun 2012, Andrew Lunn wrote: > > > Commit 0fa1f0609a0c1fe8b2be3c0089a2cb48f7fda521 (ARM: Orion: Fix > > Virtual/Physical mixup with watchdog) broke the Dove & MV78xx0 > > build. Although these two SoC don't use the watchdog, the shared > >

[PATCH 0/3 STABLE] udf: Do not crash on corrupted media

2012-07-04 Thread Jan Kara
Hi, these patches went upstream recently and they improve UDF handling of corrupted media. These patches are adjusted to work with 3.0 kernel (udf_err() is called udf_error() in that kernel). Honza -- To unsubscribe from

[PATCH 3/3] udf: Fortify loading of sparing table

2012-07-04 Thread Jan Kara
Add sanity checks when loading sparing table from disk to avoid accessing unallocated memory or writing to it. Signed-off-by: Jan Kara --- fs/udf/super.c | 86 ++- 1 files changed, 53 insertions(+), 33 deletions(-) Index: linux-3.0-SLE11-SP

[PATCH 2/3] udf: Avoid run away loop when partition table length is corrupted

2012-07-04 Thread Jan Kara
Check provided length of partition table so that (possibly maliciously) corrupted partition table cannot cause accessing data beyond current buffer. Signed-off-by: Jan Kara --- fs/udf/super.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) Index: linux-3.0-SLE11-SP2/fs/udf/

[PATCH 1/3] udf: Use 'ret' instead of abusing 'i' in udf_load_logicalvol()

2012-07-04 Thread Jan Kara
Signed-off-by: Jan Kara --- fs/udf/super.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/udf/super.c b/fs/udf/super.c index ac8a348..9da6f4e 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -1233,11 +1233,9 @@ static int udf_load_logicalvol(struct super_bloc

Re: [PATCH 0/3 STABLE] udf: Do not crash on corrupted media

2012-07-04 Thread Greg KH
On Wed, Jul 04, 2012 at 01:01:36PM +0200, Jan Kara wrote: > > Hi, > > these patches went upstream recently and they improve UDF handling of > corrupted media. These patches are adjusted to work with 3.0 kernel (udf_err() > is called udf_error() in that kernel). What are the git commit ids of

[PATCH 3/4] gpiolib: wm8994: Pay attention to the value set when enabling as output

2012-07-04 Thread Mark Brown
Not paying attention to the value being set is a bad thing because it means that we'll not set the hardware up to reflect what was requested. Not setting the hardware up to reflect what was requested means that the caller won't get the results they wanted. ` Signed-off-by: Mark Brown Acked-by: Lin

Patch Upstream: e1000e: remove use of IP payload checksum

2012-07-04 Thread Gregs git-bot
commit: 2e1706f234f86ff71056ef69683d734fbf7e9e40 From: Bruce Allan Date: Sat, 30 Jun 2012 20:02:42 + Subject: e1000e: remove use of IP payload checksum Currently only used when packet split mode is enabled with jumbo frames, IP payload checksum (for fragmented UDP packets) is mutually exclusi

Patch Upstream: igbvf: fix divide by zero

2012-07-04 Thread Gregs git-bot
commit: 0e90b49ca4b891f085b57559a3071a4feefb496c From: Mitch A Williams Date: Sat, 30 Jun 2012 00:23:19 + Subject: igbvf: fix divide by zero Using ethtool -C ethX rx-usecs 0 crashes with a divide by zero. Refactor this function to fix this issue and make it more clear what the intent of each

Patch Upstream: clk: fix parent validation in __clk_set_parent()

2012-07-04 Thread Gregs git-bot
commit: 863b13271f1608ab3af6f7a371047d9a66693e38 From: Rajendra Nayak Date: Tue, 3 Jul 2012 12:11:41 +0530 Subject: clk: fix parent validation in __clk_set_parent() The below commit introduced a bug in __clk_set_parent() which could cause it to *skip* the parent validation which makes sure the pa

Patch Upstream: net: qmi_wwan: fix Oops while disconnecting

2012-07-04 Thread Gregs git-bot
commit: d9b8706843a501034d09bea63ca6723a2ed02b11 From: =?UTF-8?q?Bj=C3=B8rn=20Mork?= Date: Thu, 21 Jun 2012 23:11:18 + Subject: net: qmi_wwan: fix Oops while disconnecting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit usbnet_disconnect() will set in

Patch Upstream: mac80211: correct behaviour on unrecognised action frames

2012-07-04 Thread Gregs git-bot
commit: 4b5ebccc40843104d980f0714bc86bfcd5568941 From: Johannes Berg Date: Wed, 27 Jun 2012 15:38:56 +0200 Subject: mac80211: correct behaviour on unrecognised action frames When receiving an "individually addressed" action frame, the receiver is required to return it to the sender. mac80211 gets

Patch Upstream: ath9k: enable serialize_regmode for non-PCIE AR9287

2012-07-04 Thread Gregs git-bot
commit: 7508b657967cf664b5aa0f6367d05016e7e3bc2a From: Panayiotis Karabassis Date: Tue, 26 Jun 2012 23:37:17 +0300 Subject: ath9k: enable serialize_regmode for non-PCIE AR9287 https://bugzilla.kernel.org/show_bug.cgi?id=42903 Based on the work of Signed-off-by: Panayiotis Karabassis Cc: stabl

Patch Upstream: rtlwifi: rtl8192cu: New USB IDs

2012-07-04 Thread Gregs git-bot
commit: f63d7dabd5da9ef41f28f6d69b29bc084db0ca5a From: Larry Finger Date: Mon, 25 Jun 2012 18:01:12 -0500 Subject: rtlwifi: rtl8192cu: New USB IDs The latest Realtek driver for the RTL8188CU and RTL8192CU chips adds three new USB IDs. Reported-by: Xose Vazquez Perez Signed-off-by: Larry Finger

Patch Upstream: NFC: Return from rawsock_release when sk is NULL

2012-07-04 Thread Gregs git-bot
commit: 03e934f620101ca2cfc9383bd76172dd3e1f8567 From: Eric Dumazet Date: Tue, 12 Jun 2012 00:47:58 +0200 Subject: NFC: Return from rawsock_release when sk is NULL Sasha Levin reported following panic : [ 2136.383310] BUG: unable to handle kernel NULL pointer dereference at 03b0 [ 21

Patch Upstream: iwlwifi: fix activating inactive stations

2012-07-04 Thread Gregs git-bot
commit: eac9ac6d1f5d0e9d33e4ded682187b630e7606cd From: Johannes Berg Date: Mon, 25 Jun 2012 09:36:41 +0200 Subject: iwlwifi: fix activating inactive stations When authentication/association timed out, the driver would complain bitterly, printing the message ACTIVATE a non DRIVER active station id

Patch Upstream: NFC: Prevent multiple buffer overflows in NCI

2012-07-04 Thread Gregs git-bot
commit: 67de956ff5dc1d4f321e16cfbd63f5be3b691b43 From: Dan Rosenberg Date: Mon, 25 Jun 2012 16:05:27 +0200 Subject: NFC: Prevent multiple buffer overflows in NCI Fix multiple remotely-exploitable stack-based buffer overflows due to the NCI code pulling length fields directly from incoming frames

Patch Upstream: ath9k: fix dynamic WEP related regression

2012-07-04 Thread Gregs git-bot
commit: bed3d9c0b71f9afbfec905cb6db3b9f16be29d4d From: Felix Fietkau Date: Sat, 23 Jun 2012 19:23:31 +0200 Subject: ath9k: fix dynamic WEP related regression commit 7a532fe7131216a02c81a6c1b1f8632da1195a58 ath9k_hw: fix interpretation of the rx KeyMiss flag This commit used the rx key miss indic

Patch Upstream: mwifiex: fix WPS eapol handshake failure

2012-07-04 Thread Gregs git-bot
commit: f03ba7e9a24e5e9efaad56bd1713b994ea556b16 From: Stone Piao Date: Wed, 20 Jun 2012 20:21:11 -0700 Subject: mwifiex: fix WPS eapol handshake failure After association, STA will go through eapol handshake with WPS enabled AP. It's observed that WPS handshake fails with some 11n AP. The reason

Patch Upstream: mwifiex: fix 11n rx packet drop issue

2012-07-04 Thread Gregs git-bot
commit: 925839243dc9aa4ef25305f5afd10ed18258a4ac From: Stone Piao Date: Wed, 20 Jun 2012 20:21:10 -0700 Subject: mwifiex: fix 11n rx packet drop issue Currently we check the sequence number of last packet received against start_win. If a sequence hole is detected, start_win is updated to next seq

Patch Upstream: mac80211: clear ifmgd->bssid only after building DELBA

2012-07-04 Thread Gregs git-bot
commit: 88a9e31c506c00c8b7a2f1611406d0e38dcb33b3 From: Eliad Peller Date: Fri, 1 Jun 2012 11:14:03 +0300 Subject: mac80211: clear ifmgd->bssid only after building DELBA ieee80211_set_disassoc() clears ifmgd->bssid before building DELBA frames, resulting in frames with invalid bssid ("00:00:00:00:

Linux 3.2.22

2012-07-04 Thread Ben Hutchings
I'm announcing the release of the 3.2.22 kernel. All users of the 3.2 kernel series should upgrade. The updated 3.2.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 3.2.22

2012-07-04 Thread Ben Hutchings
diff --git a/Documentation/stable_kernel_rules.txt b/Documentation/stable_kernel_rules.txt index 21fd05c..e1f856b 100644 --- a/Documentation/stable_kernel_rules.txt +++ b/Documentation/stable_kernel_rules.txt @@ -12,6 +12,12 @@ Rules on what kind of patches are accepted, and which ones are not, i

[PATCH] [SCSI] scsi_pm: set device runtime state before parent suspended

2012-07-04 Thread Lin Ming
There is a race in scsi_bus_resume_common when set device's runtime state to active after pm_runtime_put_sync(dev->parent). Parent device may have been suspended so pm_runtime_set_active(dev) will fail with -EBUSY. Signed-off-by: Lin Ming CC: --- drivers/scsi/scsi_pm.c | 10 +- 1 fil