diff options
| author | Xiubo Li <Li.Xiubo@freescale.com> | 2014-02-28 10:48:19 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2014-03-04 12:32:19 +0800 |
| commit | 931f27c6e892fdfe98896055e0df7962e21969d9 (patch) | |
| tree | 0c655c9d5a9f7966560b53ce78427affff51071e /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | ASoC: core: fix coccinelle warnings (diff) | |
| download | linux-931f27c6e892fdfe98896055e0df7962e21969d9.tar.gz linux-931f27c6e892fdfe98896055e0df7962e21969d9.zip | |
ASoC: cache: Do the codec->reg_cache zero pionter check
For the snd_soc_cache_init(), the reg_size maybe zero and then the value
of codec->reg_cache, which is alloced via kzalloc, maybe equal to
ZERO_SIZE_PTR. If the reg parameter of snd_soc_cache_write() is large enough,
the cache[idx] = val maybe cause the kernel crash...
So this patch fix this via doing the zero pionter check of it.
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
