Commit 9a64425
ALSA: au88x0: Fix zero clear of stream->resources
commit 639db596165746ca87bbcb56559b094fd9042890 upstream.
There are a few calls of memset() to stream->resources, but they all
are called in a wrong size, sizeof(unsigned char) * VORTEX_RESOURCE_LAST,
while this field is a u32 array. This may leave the memories not
zero-cleared.
Fix it by replacing them with a simpler sizeof(stream->resources)
instead.
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent da8477a commit 9a64425
1 file changed
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2150 | 2150 | | |
2151 | 2151 | | |
2152 | 2152 | | |
2153 | | - | |
2154 | | - | |
| 2153 | + | |
2155 | 2154 | | |
2156 | 2155 | | |
2157 | 2156 | | |
| |||
2161 | 2160 | | |
2162 | 2161 | | |
2163 | 2162 | | |
2164 | | - | |
| 2163 | + | |
2165 | 2164 | | |
2166 | 2165 | | |
2167 | 2166 | | |
| |||
2174 | 2173 | | |
2175 | 2174 | | |
2176 | 2175 | | |
2177 | | - | |
2178 | | - | |
| 2176 | + | |
2179 | 2177 | | |
2180 | 2178 | | |
2181 | 2179 | | |
| |||
2289 | 2287 | | |
2290 | 2288 | | |
2291 | 2289 | | |
2292 | | - | |
2293 | | - | |
| 2290 | + | |
2294 | 2291 | | |
2295 | 2292 | | |
2296 | 2293 | | |
2297 | 2294 | | |
2298 | 2295 | | |
2299 | 2296 | | |
2300 | 2297 | | |
2301 | | - | |
2302 | | - | |
| 2298 | + | |
2303 | 2299 | | |
2304 | 2300 | | |
2305 | 2301 | | |
| |||
0 commit comments