]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.7-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2013 12:46:13 +0000 (13:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2013 12:46:13 +0000 (13:46 +0100)
added patches:
alsa-hda-add-a-fixup-for-packard-bell-desktop-with-alc880.patch
alsa-hda-fix-inverted-internal-mic-on-acer-aoa150-zg5.patch
alsa-hda-fix-non-snoop-page-handling.patch
alsa-usb-audio-fix-invalid-length-check-for-rme-and-other-uac-2-devices.patch
asoc-arizona-use-actual-rather-than-desired-bclk-when-calculating-lrclk.patch
asoc-wm2200-correct-mixer-values-and-text.patch
bluetooth-fix-incorrect-strncpy-in-hidp_setup_hid.patch
edac-fix-kcalloc-argument-order.patch
edac-test-correct-variable-in-store-function.patch

queue-3.7/alsa-hda-add-a-fixup-for-packard-bell-desktop-with-alc880.patch [new file with mode: 0644]
queue-3.7/alsa-hda-fix-inverted-internal-mic-on-acer-aoa150-zg5.patch [new file with mode: 0644]
queue-3.7/alsa-hda-fix-non-snoop-page-handling.patch [new file with mode: 0644]
queue-3.7/alsa-usb-audio-fix-invalid-length-check-for-rme-and-other-uac-2-devices.patch [new file with mode: 0644]
queue-3.7/asoc-arizona-use-actual-rather-than-desired-bclk-when-calculating-lrclk.patch [new file with mode: 0644]
queue-3.7/asoc-wm2200-correct-mixer-values-and-text.patch [new file with mode: 0644]
queue-3.7/bluetooth-fix-incorrect-strncpy-in-hidp_setup_hid.patch [new file with mode: 0644]
queue-3.7/edac-fix-kcalloc-argument-order.patch [new file with mode: 0644]
queue-3.7/edac-test-correct-variable-in-store-function.patch [new file with mode: 0644]
queue-3.7/series

diff --git a/queue-3.7/alsa-hda-add-a-fixup-for-packard-bell-desktop-with-alc880.patch b/queue-3.7/alsa-hda-add-a-fixup-for-packard-bell-desktop-with-alc880.patch
new file mode 100644 (file)
index 0000000..72255fd
--- /dev/null
@@ -0,0 +1,32 @@
+From 0712eea349d8e2b6d0e44b94a752d999319027fb Mon Sep 17 00:00:00 2001
+From: Takashi Iwai <tiwai@suse.de>
+Date: Wed, 23 Jan 2013 18:16:24 +0100
+Subject: ALSA: hda - Add a fixup for Packard-Bell desktop with ALC880
+
+From: Takashi Iwai <tiwai@suse.de>
+
+commit 0712eea349d8e2b6d0e44b94a752d999319027fb upstream.
+
+A Packard-Bell desktop machine gives no proper pin configuration from
+BIOS.  It's almost equivalent with the 6stack+fp standard config, just
+take the existing fixup.
+
+Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=901846
+
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ sound/pci/hda/patch_realtek.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/sound/pci/hda/patch_realtek.c
++++ b/sound/pci/hda/patch_realtek.c
+@@ -4688,6 +4688,7 @@ static const struct snd_pci_quirk alc880
+       SND_PCI_QUIRK(0x1584, 0x9077, "Uniwill P53", ALC880_FIXUP_VOL_KNOB),
+       SND_PCI_QUIRK(0x161f, 0x203d, "W810", ALC880_FIXUP_W810),
+       SND_PCI_QUIRK(0x161f, 0x205d, "Medion Rim 2150", ALC880_FIXUP_MEDION_RIM),
++      SND_PCI_QUIRK(0x1631, 0xe011, "PB 13201056", ALC880_FIXUP_6ST),
+       SND_PCI_QUIRK(0x1734, 0x107c, "FSC F1734", ALC880_FIXUP_F1734),
+       SND_PCI_QUIRK(0x1734, 0x1094, "FSC Amilo M1451G", ALC880_FIXUP_FUJITSU),
+       SND_PCI_QUIRK(0x1734, 0x10ac, "FSC AMILO Xi 1526", ALC880_FIXUP_F1734),
diff --git a/queue-3.7/alsa-hda-fix-inverted-internal-mic-on-acer-aoa150-zg5.patch b/queue-3.7/alsa-hda-fix-inverted-internal-mic-on-acer-aoa150-zg5.patch
new file mode 100644 (file)
index 0000000..8985702
--- /dev/null
@@ -0,0 +1,30 @@
+From fcd8f3b1d43c645e291638bc6c80a1c680722869 Mon Sep 17 00:00:00 2001
+From: David Henningsson <david.henningsson@canonical.com>
+Date: Mon, 28 Jan 2013 05:45:47 +0100
+Subject: ALSA: hda - fix inverted internal mic on Acer AOA150/ZG5
+
+From: David Henningsson <david.henningsson@canonical.com>
+
+commit fcd8f3b1d43c645e291638bc6c80a1c680722869 upstream.
+
+This patch enables internal mic input on the machine.
+
+BugLink: https://bugs.launchpad.net/bugs/1107477
+Signed-off-by: David Henningsson <david.henningsson@canonical.com>
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ sound/pci/hda/patch_realtek.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/sound/pci/hda/patch_realtek.c
++++ b/sound/pci/hda/patch_realtek.c
+@@ -5703,6 +5703,7 @@ static const struct alc_model_fixup alc2
+ };
+ static const struct snd_pci_quirk alc268_fixup_tbl[] = {
++      SND_PCI_QUIRK(0x1025, 0x015b, "Acer AOA 150 (ZG5)", ALC268_FIXUP_INV_DMIC),
+       /* below is codec SSID since multiple Toshiba laptops have the
+        * same PCI SSID 1179:ff00
+        */
diff --git a/queue-3.7/alsa-hda-fix-non-snoop-page-handling.patch b/queue-3.7/alsa-hda-fix-non-snoop-page-handling.patch
new file mode 100644 (file)
index 0000000..4bbf36f
--- /dev/null
@@ -0,0 +1,128 @@
+From 9ddf1aeb2134e72275c97a2c6ff2e3eb04f2f27a Mon Sep 17 00:00:00 2001
+From: Takashi Iwai <tiwai@suse.de>
+Date: Tue, 29 Jan 2013 18:07:22 +0100
+Subject: ALSA: hda - Fix non-snoop page handling
+
+From: Takashi Iwai <tiwai@suse.de>
+
+commit 9ddf1aeb2134e72275c97a2c6ff2e3eb04f2f27a upstream.
+
+For non-snoop mode, we fiddle with the page attributes of CORB/RIRB
+and the position buffer, but also the ring buffers.  The problem is
+that the current code blindly assumes that the buffer is contiguous.
+However, the ring buffers may be SG-buffers, thus a wrong vmapped
+address is passed there, leading to Oops.
+
+This patch fixes the handling for SG-buffers.
+
+Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=800701
+
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ sound/pci/hda/hda_intel.c |   40 ++++++++++++++++++++++++++--------------
+ 1 file changed, 26 insertions(+), 14 deletions(-)
+
+--- a/sound/pci/hda/hda_intel.c
++++ b/sound/pci/hda/hda_intel.c
+@@ -650,29 +650,43 @@ static char *driver_short_names[] DELAYE
+ #define get_azx_dev(substream) (substream->runtime->private_data)
+ #ifdef CONFIG_X86
+-static void __mark_pages_wc(struct azx *chip, void *addr, size_t size, bool on)
++static void __mark_pages_wc(struct azx *chip, struct snd_dma_buffer *dmab, bool on)
+ {
++      int pages;
++
+       if (azx_snoop(chip))
+               return;
+-      if (addr && size) {
+-              int pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
++      if (!dmab || !dmab->area || !dmab->bytes)
++              return;
++
++#ifdef CONFIG_SND_DMA_SGBUF
++      if (dmab->dev.type == SNDRV_DMA_TYPE_DEV_SG) {
++              struct snd_sg_buf *sgbuf = dmab->private_data;
+               if (on)
+-                      set_memory_wc((unsigned long)addr, pages);
++                      set_pages_array_wc(sgbuf->page_table, sgbuf->pages);
+               else
+-                      set_memory_wb((unsigned long)addr, pages);
++                      set_pages_array_wb(sgbuf->page_table, sgbuf->pages);
++              return;
+       }
++#endif
++
++      pages = (dmab->bytes + PAGE_SIZE - 1) >> PAGE_SHIFT;
++      if (on)
++              set_memory_wc((unsigned long)dmab->area, pages);
++      else
++              set_memory_wb((unsigned long)dmab->area, pages);
+ }
+ static inline void mark_pages_wc(struct azx *chip, struct snd_dma_buffer *buf,
+                                bool on)
+ {
+-      __mark_pages_wc(chip, buf->area, buf->bytes, on);
++      __mark_pages_wc(chip, buf, on);
+ }
+ static inline void mark_runtime_wc(struct azx *chip, struct azx_dev *azx_dev,
+-                                 struct snd_pcm_runtime *runtime, bool on)
++                                 struct snd_pcm_substream *substream, bool on)
+ {
+       if (azx_dev->wc_marked != on) {
+-              __mark_pages_wc(chip, runtime->dma_area, runtime->dma_bytes, on);
++              __mark_pages_wc(chip, snd_pcm_get_dma_buf(substream), on);
+               azx_dev->wc_marked = on;
+       }
+ }
+@@ -683,7 +697,7 @@ static inline void mark_pages_wc(struct
+ {
+ }
+ static inline void mark_runtime_wc(struct azx *chip, struct azx_dev *azx_dev,
+-                                 struct snd_pcm_runtime *runtime, bool on)
++                                 struct snd_pcm_substream *substream, bool on)
+ {
+ }
+ #endif
+@@ -1860,11 +1874,10 @@ static int azx_pcm_hw_params(struct snd_
+ {
+       struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
+       struct azx *chip = apcm->chip;
+-      struct snd_pcm_runtime *runtime = substream->runtime;
+       struct azx_dev *azx_dev = get_azx_dev(substream);
+       int ret;
+-      mark_runtime_wc(chip, azx_dev, runtime, false);
++      mark_runtime_wc(chip, azx_dev, substream, false);
+       azx_dev->bufsize = 0;
+       azx_dev->period_bytes = 0;
+       azx_dev->format_val = 0;
+@@ -1872,7 +1885,7 @@ static int azx_pcm_hw_params(struct snd_
+                                       params_buffer_bytes(hw_params));
+       if (ret < 0)
+               return ret;
+-      mark_runtime_wc(chip, azx_dev, runtime, true);
++      mark_runtime_wc(chip, azx_dev, substream, true);
+       return ret;
+ }
+@@ -1881,7 +1894,6 @@ static int azx_pcm_hw_free(struct snd_pc
+       struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
+       struct azx_dev *azx_dev = get_azx_dev(substream);
+       struct azx *chip = apcm->chip;
+-      struct snd_pcm_runtime *runtime = substream->runtime;
+       struct hda_pcm_stream *hinfo = apcm->hinfo[substream->stream];
+       /* reset BDL address */
+@@ -1894,7 +1906,7 @@ static int azx_pcm_hw_free(struct snd_pc
+       snd_hda_codec_cleanup(apcm->codec, hinfo, substream);
+-      mark_runtime_wc(chip, azx_dev, runtime, false);
++      mark_runtime_wc(chip, azx_dev, substream, false);
+       return snd_pcm_lib_free_pages(substream);
+ }
diff --git a/queue-3.7/alsa-usb-audio-fix-invalid-length-check-for-rme-and-other-uac-2-devices.patch b/queue-3.7/alsa-usb-audio-fix-invalid-length-check-for-rme-and-other-uac-2-devices.patch
new file mode 100644 (file)
index 0000000..47aaf49
--- /dev/null
@@ -0,0 +1,58 @@
+From d56268fb108c7c21e19933588ca4d94652585183 Mon Sep 17 00:00:00 2001
+From: Clemens Ladisch <clemens@ladisch.de>
+Date: Thu, 29 Nov 2012 17:04:23 +0100
+Subject: ALSA: usb-audio: fix invalid length check for RME and other UAC 2 devices
+
+From: Clemens Ladisch <clemens@ladisch.de>
+
+commit d56268fb108c7c21e19933588ca4d94652585183 upstream.
+
+Commit 23caaf19b11e (ALSA: usb-mixer: Add support for Audio Class v2.0)
+forgot to adjust the length check for UAC 2.0 feature unit descriptors.
+This would make the code abort on encountering a feature unit without
+per-channel controls, and thus prevented the driver to work with any
+device having such a unit, such as the RME Babyface or Fireface UCX.
+
+Reported-by: Florian Hanisch <fhanisch@uni-potsdam.de>
+Tested-by: Matthew Robbetts <wingfeathera@gmail.com>
+Tested-by: Michael Beer <beerml@sigma6audio.de>
+Cc: Daniel Mack <daniel@caiaq.de>
+Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ sound/usb/mixer.c |   17 ++++++++++++-----
+ 1 file changed, 12 insertions(+), 5 deletions(-)
+
+--- a/sound/usb/mixer.c
++++ b/sound/usb/mixer.c
+@@ -1259,16 +1259,23 @@ static int parse_audio_feature_unit(stru
+               }
+               channels = (hdr->bLength - 7) / csize - 1;
+               bmaControls = hdr->bmaControls;
++              if (hdr->bLength < 7 + csize) {
++                      snd_printk(KERN_ERR "usbaudio: unit %u: "
++                                 "invalid UAC_FEATURE_UNIT descriptor\n",
++                                 unitid);
++                      return -EINVAL;
++              }
+       } else {
+               struct uac2_feature_unit_descriptor *ftr = _ftr;
+               csize = 4;
+               channels = (hdr->bLength - 6) / 4 - 1;
+               bmaControls = ftr->bmaControls;
+-      }
+-
+-      if (hdr->bLength < 7 || !csize || hdr->bLength < 7 + csize) {
+-              snd_printk(KERN_ERR "usbaudio: unit %u: invalid UAC_FEATURE_UNIT descriptor\n", unitid);
+-              return -EINVAL;
++              if (hdr->bLength < 6 + csize) {
++                      snd_printk(KERN_ERR "usbaudio: unit %u: "
++                                 "invalid UAC_FEATURE_UNIT descriptor\n",
++                                 unitid);
++                      return -EINVAL;
++              }
+       }
+       /* parse the source unit */
diff --git a/queue-3.7/asoc-arizona-use-actual-rather-than-desired-bclk-when-calculating-lrclk.patch b/queue-3.7/asoc-arizona-use-actual-rather-than-desired-bclk-when-calculating-lrclk.patch
new file mode 100644 (file)
index 0000000..94c2644
--- /dev/null
@@ -0,0 +1,30 @@
+From b59e0f82aa350e380142353fbd30706092ba6312 Mon Sep 17 00:00:00 2001
+From: Mark Brown <broonie@opensource.wolfsonmicro.com>
+Date: Thu, 17 Jan 2013 14:15:59 +0900
+Subject: ASoC: arizona: Use actual rather than desired BCLK when calculating LRCLK
+
+From: Mark Brown <broonie@opensource.wolfsonmicro.com>
+
+commit b59e0f82aa350e380142353fbd30706092ba6312 upstream.
+
+Otherwise we'll get the wrong LRCLK if we need to pick a higher BCLK than
+is required.
+
+Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ sound/soc/codecs/arizona.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/sound/soc/codecs/arizona.c
++++ b/sound/soc/codecs/arizona.c
+@@ -648,7 +648,7 @@ static int arizona_hw_params(struct snd_
+       }
+       sr_val = i;
+-      lrclk = snd_soc_params_to_bclk(params) / params_rate(params);
++      lrclk = rates[bclk] / params_rate(params);
+       arizona_aif_dbg(dai, "BCLK %dHz LRCLK %dHz\n",
+                       rates[bclk], rates[bclk] / lrclk);
diff --git a/queue-3.7/asoc-wm2200-correct-mixer-values-and-text.patch b/queue-3.7/asoc-wm2200-correct-mixer-values-and-text.patch
new file mode 100644 (file)
index 0000000..86b4009
--- /dev/null
@@ -0,0 +1,36 @@
+From a80cc734282805e15b5e023751a4d02f7ffbcc91 Mon Sep 17 00:00:00 2001
+From: Chris Rattray <crattray@opensource.wolfsonmicro.com>
+Date: Tue, 15 Jan 2013 13:22:36 +0000
+Subject: ASoC: wm2200: correct mixer values and text
+
+From: Chris Rattray <crattray@opensource.wolfsonmicro.com>
+
+commit a80cc734282805e15b5e023751a4d02f7ffbcc91 upstream.
+
+Signed-off-by: Chris Rattray <crattray@opensource.wolfsonmicro.com>
+Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ sound/soc/codecs/wm2200.c |    3 ---
+ 1 file changed, 3 deletions(-)
+
+--- a/sound/soc/codecs/wm2200.c
++++ b/sound/soc/codecs/wm2200.c
+@@ -897,8 +897,6 @@ static const char *wm2200_mixer_texts[]
+       "EQR",
+       "LHPF1",
+       "LHPF2",
+-      "LHPF3",
+-      "LHPF4",
+       "DSP1.1",
+       "DSP1.2",
+       "DSP1.3",
+@@ -931,7 +929,6 @@ static int wm2200_mixer_values[] = {
+       0x25,
+       0x50,   /* EQ */
+       0x51,
+-      0x52,
+       0x60,   /* LHPF1 */
+       0x61,   /* LHPF2 */
+       0x68,   /* DSP1 */
diff --git a/queue-3.7/bluetooth-fix-incorrect-strncpy-in-hidp_setup_hid.patch b/queue-3.7/bluetooth-fix-incorrect-strncpy-in-hidp_setup_hid.patch
new file mode 100644 (file)
index 0000000..e90db45
--- /dev/null
@@ -0,0 +1,43 @@
+From 0a9ab9bdb3e891762553f667066190c1d22ad62b Mon Sep 17 00:00:00 2001
+From: Anderson Lizardo <anderson.lizardo@openbossa.org>
+Date: Sun, 6 Jan 2013 18:28:53 -0400
+Subject: Bluetooth: Fix incorrect strncpy() in hidp_setup_hid()
+
+From: Anderson Lizardo <anderson.lizardo@openbossa.org>
+
+commit 0a9ab9bdb3e891762553f667066190c1d22ad62b upstream.
+
+The length parameter should be sizeof(req->name) - 1 because there is no
+guarantee that string provided by userspace will contain the trailing
+'\0'.
+
+Can be easily reproduced by manually setting req->name to 128 non-zero
+bytes prior to ioctl(HIDPCONNADD) and checking the device name setup on
+input subsystem:
+
+$ cat /sys/devices/pnp0/00\:04/tty/ttyS0/hci0/hci0\:1/input8/name
+AAAAAA[...]AAAAAAAAf0:af:f0:af:f0:af
+
+("f0:af:f0:af:f0:af" is the device bluetooth address, taken from "phys"
+field in struct hid_device due to overflow.)
+
+Signed-off-by: Anderson Lizardo <anderson.lizardo@openbossa.org>
+Acked-by: Marcel Holtmann <marcel@holtmann.org>
+Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ net/bluetooth/hidp/core.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/net/bluetooth/hidp/core.c
++++ b/net/bluetooth/hidp/core.c
+@@ -931,7 +931,7 @@ static int hidp_setup_hid(struct hidp_se
+       hid->version = req->version;
+       hid->country = req->country;
+-      strncpy(hid->name, req->name, 128);
++      strncpy(hid->name, req->name, sizeof(req->name) - 1);
+       strncpy(hid->phys, batostr(&bt_sk(session->ctrl_sock->sk)->src), 64);
+       strncpy(hid->uniq, batostr(&bt_sk(session->ctrl_sock->sk)->dst), 64);
diff --git a/queue-3.7/edac-fix-kcalloc-argument-order.patch b/queue-3.7/edac-fix-kcalloc-argument-order.patch
new file mode 100644 (file)
index 0000000..46aa7d5
--- /dev/null
@@ -0,0 +1,48 @@
+From d3d09e18203dba16a9dbdb2b4cc673d90748cdd1 Mon Sep 17 00:00:00 2001
+From: Joe Perches <joe@perches.com>
+Date: Sat, 26 Jan 2013 11:24:00 -0800
+Subject: EDAC: Fix kcalloc argument order
+
+From: Joe Perches <joe@perches.com>
+
+commit d3d09e18203dba16a9dbdb2b4cc673d90748cdd1 upstream.
+
+First number, then size.
+
+Signed-off-by: Joe Perches <joe@perches.com>
+Signed-off-by: Borislav Petkov <bp@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/edac/edac_mc.c |    6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+--- a/drivers/edac/edac_mc.c
++++ b/drivers/edac/edac_mc.c
+@@ -340,7 +340,7 @@ struct mem_ctl_info *edac_mc_alloc(unsig
+       /*
+        * Alocate and fill the csrow/channels structs
+        */
+-      mci->csrows = kcalloc(sizeof(*mci->csrows), tot_csrows, GFP_KERNEL);
++      mci->csrows = kcalloc(tot_csrows, sizeof(*mci->csrows), GFP_KERNEL);
+       if (!mci->csrows)
+               goto error;
+       for (row = 0; row < tot_csrows; row++) {
+@@ -351,7 +351,7 @@ struct mem_ctl_info *edac_mc_alloc(unsig
+               csr->csrow_idx = row;
+               csr->mci = mci;
+               csr->nr_channels = tot_channels;
+-              csr->channels = kcalloc(sizeof(*csr->channels), tot_channels,
++              csr->channels = kcalloc(tot_channels, sizeof(*csr->channels),
+                                       GFP_KERNEL);
+               if (!csr->channels)
+                       goto error;
+@@ -369,7 +369,7 @@ struct mem_ctl_info *edac_mc_alloc(unsig
+       /*
+        * Allocate and fill the dimm structs
+        */
+-      mci->dimms  = kcalloc(sizeof(*mci->dimms), tot_dimms, GFP_KERNEL);
++      mci->dimms  = kcalloc(tot_dimms, sizeof(*mci->dimms), GFP_KERNEL);
+       if (!mci->dimms)
+               goto error;
diff --git a/queue-3.7/edac-test-correct-variable-in-store-function.patch b/queue-3.7/edac-test-correct-variable-in-store-function.patch
new file mode 100644 (file)
index 0000000..0452745
--- /dev/null
@@ -0,0 +1,30 @@
+From 8024c4c0b1057d1cd811fc9c3f88f81de9729fcd Mon Sep 17 00:00:00 2001
+From: Dan Carpenter <dan.carpenter@oracle.com>
+Date: Sat, 26 Jan 2013 10:49:24 +0300
+Subject: EDAC: Test correct variable in ->store function
+
+From: Dan Carpenter <dan.carpenter@oracle.com>
+
+commit 8024c4c0b1057d1cd811fc9c3f88f81de9729fcd upstream.
+
+We're testing for ->show but calling ->store().
+
+Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
+Signed-off-by: Borislav Petkov <bp@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/edac/edac_pci_sysfs.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/edac/edac_pci_sysfs.c
++++ b/drivers/edac/edac_pci_sysfs.c
+@@ -256,7 +256,7 @@ static ssize_t edac_pci_dev_store(struct
+       struct edac_pci_dev_attribute *edac_pci_dev;
+       edac_pci_dev = (struct edac_pci_dev_attribute *)attr;
+-      if (edac_pci_dev->show)
++      if (edac_pci_dev->store)
+               return edac_pci_dev->store(edac_pci_dev->value, buffer, count);
+       return -EIO;
+ }
index 8aa818eb2a7ae30aad31e29a95c4ddd3dd3b06ea..c0f6c6cc0c8e0ef681e72ab65abf8b6b7a0bcda3 100644 (file)
@@ -41,3 +41,12 @@ ath9k-remove-sc-rx.rxbuflock-to-fix-a-deadlock.patch
 ath9k-disable-the-tasklet-before-taking-the-pcu-lock.patch
 ath9k_hw-fix-chain-swap-setting-when-setting-rx-chainmask-to-5.patch
 ath9k-allow-setting-arbitrary-antenna-masks-on-ar9003.patch
+alsa-usb-audio-fix-invalid-length-check-for-rme-and-other-uac-2-devices.patch
+alsa-hda-add-a-fixup-for-packard-bell-desktop-with-alc880.patch
+alsa-hda-fix-inverted-internal-mic-on-acer-aoa150-zg5.patch
+alsa-hda-fix-non-snoop-page-handling.patch
+edac-test-correct-variable-in-store-function.patch
+edac-fix-kcalloc-argument-order.patch
+asoc-arizona-use-actual-rather-than-desired-bclk-when-calculating-lrclk.patch
+asoc-wm2200-correct-mixer-values-and-text.patch
+bluetooth-fix-incorrect-strncpy-in-hidp_setup_hid.patch