platform: msm: free the codec node after disconnect

The codec interface node is allocated during the codec
addition during dp connect. These changes will free the
node after the dp disconnect.

Change-Id: I6f1fc5639f1a5fa61ef04557b888b3389800dce1
Signed-off-by: Sankeerth Billakanti <sbillaka@codeaurora.org>
This commit is contained in:
Sankeerth Billakanti 2019-12-21 15:19:57 +05:30 • committed by Gerrit - the friendly Code Review server
commit 4945008ef3

View file

@ -130,6 +130,7 @@ static int msm_ext_disp_remove_intf_data(struct msm_ext_disp *ext_disp,
if (node->data == data) {
list_del(pos);
pr_debug("Deleted the intf data\n");
kfree(node);
return 0;
}
}