You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
freifunkist-firmware/target/linux/brcm2708/patches-4.14/950-0232-Fixing-memset-call...

21 lines
664 B

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");