aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorSu Sung Chung <[email protected]>2019-07-25 14:43:55 -0400
committerAlex Deucher <[email protected]>2019-08-23 11:37:11 -0500
commit574304041bb9508a4e73533e8d1702b0e713d321 (patch)
tree39ce63ebb88aab7bef9fc602d31f1aca9f0c4869 /net/switchdev/switchdev.c
parent67427d4f10e765a18ac33b4008377ef365589501 (diff)
drm/amd/display: fix audio endpoint not getting disabled issue
[Why] Disable_audio_stream gets enum option as a paramenter which will decide if we free acquired resources or not. However checks for the option is guarded by the other condition which check if audio stream is getting diabled more than once. With both conditions combined, if we attempt to disable audio stream twice in a row, first with keep and second with free as an option, we will never free any resources, which will make system think there is audio endpoint connected even after we plug out the device [How] Get rid of option as parameter to disable_audio_stream and move the part of the code that free acquired resources to outside where to keep or to free resources is actually determined Signed-off-by: Su Sung Chung <[email protected]> Reviewed-by: Jun Lei <[email protected]> Acked-by: Bhawanpreet Lakha <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions