aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorJeeja KP <[email protected]>2017-03-01 17:11:24 +0000
committerMark Brown <[email protected]>2017-03-06 10:42:34 +0000
commit2fe42dd0f13812d38daaf05bcb1fd996afd0e87a (patch)
tree1e71dc34ef66c24b44bb7da88a1f84cb81bb0e7f /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentASoC: hdac_hdmi: avoid reference to invalid variable of the pin list (diff)
downloadkernel-2fe42dd0f13812d38daaf05bcb1fd996afd0e87a.tar.gz
kernel-2fe42dd0f13812d38daaf05bcb1fd996afd0e87a.zip
ASoC: hdac_hdmi: don't update the iterator in pcm list remove
Fix not to update the iterator element, instead use list_del to remove entry from the list. This fixes the following coccinelle and static checker warning: sound/soc/codecs/hdac_hdmi.c:1884:2-21:iterator with update on line 1885 sound/soc/codecs/hdac_hdmi.c:2011 hdac_hdmi_dev_remove() error: potential NULL dereference 'port'. Fixes: e0e5d3e5a53b('ASoC: hdac_hdmi: Add support for multiple ports to a PCM') Reported-by: Julia Lawall <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Jeeja KP <[email protected]> Acked-by: Vinod Koul <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions