Commit d6c098a
ASoC: don't dereference NULL pcm_{new,free}
Not all platform drivers have pcm_{new,free} callbacks. Seen with a
"snd-soc-dummy" codec from sound/soc/rockchip/rk3399_gru_sound.c.
Fixes: 99b04f4 ("ASoC: add Component level pcm_new/pcm_free")
Signed-off-by: Brian Norris <[email protected]>
Signed-off-by: Mark Brown <[email protected]>1 parent c1ae3cf commit d6c098a
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3326 | 3326 | | |
3327 | 3327 | | |
3328 | 3328 | | |
3329 | | - | |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
| 3332 | + | |
3330 | 3333 | | |
3331 | 3334 | | |
3332 | 3335 | | |
3333 | 3336 | | |
3334 | 3337 | | |
3335 | 3338 | | |
3336 | 3339 | | |
3337 | | - | |
| 3340 | + | |
| 3341 | + | |
3338 | 3342 | | |
3339 | 3343 | | |
3340 | 3344 | | |
| |||
0 commit comments