ASoC: fixes to caching implementations
This patch takes fixes a number of bugs in the caching code used by several ASoC codec drivers. Mostly off-by-one fixes. Signed-off-by: Ian Molton <ian@mnementh.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Этот коммит содержится в:

коммит произвёл
Mark Brown

родитель
28796eaf80
Коммит
91432e976f
@@ -123,7 +123,6 @@ bus_err:
|
||||
snd_soc_free_pcms(socdev);
|
||||
|
||||
err:
|
||||
kfree(socdev->codec->reg_cache);
|
||||
kfree(socdev->codec);
|
||||
socdev->codec = NULL;
|
||||
return ret;
|
||||
@@ -138,7 +137,6 @@ static int ac97_soc_remove(struct platform_device *pdev)
|
||||
return 0;
|
||||
|
||||
snd_soc_free_pcms(socdev);
|
||||
kfree(socdev->codec->reg_cache);
|
||||
kfree(socdev->codec);
|
||||
|
||||
return 0;
|
||||
|
Ссылка в новой задаче
Block a user