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:
7d9157c
)
Fixing memset call in pisound.c
author
Giedrius
<giedrius@blokas.io>
Sat, 24 Feb 2018 12:30:29 +0000
(14:30 +0200)
committer
Phil Elwell
<pelwell@users.noreply.github.com>
Sat, 24 Feb 2018 13:53:03 +0000
(13:53 +0000)
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");