projects
/
linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e20ae63
)
Fixing memset call in pisound.c
author
Giedrius
<giedrius@blokas.io>
Sat, 24 Feb 2018 12:30:29 +0000
(14:30 +0200)
committer
Raspbian kernel package updater
<root@raspbian.org>
Sat, 31 Mar 2018 14:57:35 +0000
(15:57 +0100)
Signed-off-by: Giedrius Trainavicius <giedrius@blokas.io>
sound/soc/bcm/pisound.c
patch
|
blob
|
history
diff --git
a/sound/soc/bcm/pisound.c
b/sound/soc/bcm/pisound.c
index 09739d51b70b877e24e4f74f6aaadebd72d9ccd8..00ae628acdd296e785cd87081703adb8decafe6e 100644
(file)
--- a/
sound/soc/bcm/pisound.c
+++ b/
sound/soc/bcm/pisound.c
@@
-313,7
+313,7
@@
static void spi_transfer(const uint8_t *txbuf, uint8_t *rxbuf, int len)
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");