aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-4.14/950-0232-Fixing-memset-call-in-pisound.c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/brcm2708/patches-4.14/950-0232-Fixing-memset-call-in-pisound.c.patch')
-rw-r--r--target/linux/brcm2708/patches-4.14/950-0232-Fixing-memset-call-in-pisound.c.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.14/950-0232-Fixing-memset-call-in-pisound.c.patch b/target/linux/brcm2708/patches-4.14/950-0232-Fixing-memset-call-in-pisound.c.patch
new file mode 100644
index 0000000000..12e31a8867
--- /dev/null
+++ b/target/linux/brcm2708/patches-4.14/950-0232-Fixing-memset-call-in-pisound.c.patch
@@ -0,0 +1,21 @@
+From 398bc58d0a05fb080e58051a33915607c71e58df Mon Sep 17 00:00:00 2001
+From: Giedrius <giedrius@blokas.io>
+Date: Sat, 24 Feb 2018 14:47:02 +0200
+Subject: [PATCH 232/454] Fixing memset call in pisound.c
+
+Signed-off-by: Giedrius Trainavicius <giedrius@blokas.io>
+---
+ sound/soc/bcm/pisound.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/sound/soc/bcm/pisound.c
++++ b/sound/soc/bcm/pisound.c
+@@ -313,7 +313,7 @@ static void spi_transfer(const uint8_t *
+ struct spi_transfer transfer;
+ struct spi_message msg;
+
+- memset(rxbuf, 0, sizeof(txbuf));
++ memset(rxbuf, 0, len);
+
+ if (!pisnd_spi_device) {
+ printe("pisnd_spi_device null, returning\n");