mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
tegra-alt: adsp: fix coverity issue
Fix coverity defects, Resource leak Coverity id 33603 Bug 1781383 Change-Id: If03f2854ae58d3a2218d6df392d12a11d1c510dc Signed-off-by: Vandana Salve <vsalve@nvidia.com> Reviewed-on: http://git-master/r/1173653 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
This commit is contained in:
committed by
Sameer Pujar
parent
0ec788ec71
commit
abd65aedf7
@@ -1033,9 +1033,15 @@ static status_t tegra210_adsp_msg_handler(uint32_t msg, void *data)
|
||||
break;
|
||||
case apm_cmd_raw_data_ready: {
|
||||
apm_raw_data_msg_t *msg = kzalloc(sizeof(apm_raw_data_msg_t), GFP_ATOMIC);
|
||||
if (!msg) {
|
||||
ret = -ENOMEM;
|
||||
break;
|
||||
}
|
||||
|
||||
ret = tegra210_adsp_get_raw_data_msg(app->apm, msg);
|
||||
if (ret < 0) {
|
||||
pr_err("Dequeue failed %d.", ret);
|
||||
kfree(msg);
|
||||
break;
|
||||
}
|
||||
memcpy(app->read_data.data, msg->msg.fx_raw_data_params.data,
|
||||
|
||||
Reference in New Issue
Block a user