Re: [PATCH] ASoC: codecs: Fix to avoid potential NULL pointer dereferences

2019-03-22 Thread Steven Price
On 19/03/2019 00:58, Aditya Pakki wrote: > In sirf_audio_codec_driver_probe, of_match_node may fail and return a > NULL pointer. The patch avoids a potential NULL pointer dereference. Actually 'match' isn't used in this function... So there's no chance of a NULL dereference. You might as well

[PATCH] ASoC: codecs: Fix to avoid potential NULL pointer dereferences

2019-03-18 Thread Aditya Pakki
In sirf_audio_codec_driver_probe, of_match_node may fail and return a NULL pointer. The patch avoids a potential NULL pointer dereference. Signed-off-by: Aditya Pakki --- sound/soc/codecs/sirf-audio-codec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git