Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b19cf45 authored by Haynes Mathew George's avatar Haynes Mathew George Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: qdsp6v2: Fix DS2 out of bounds access



Fix possible out of bounds access in DS2 driver.

Change-Id: I4e2b753d481de8e9a305abc22f8496926fb27ae3
Signed-off-by: default avatarHaynes Mathew George <hgeorge@codeaurora.org>
CRs-Fixed: 799183
parent 168f49e7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
@@ -1950,7 +1950,7 @@ int msm_ds2_dap_init(int port_id, int copp_idx, int channels,
			goto end;
		}
		pr_debug("%s:index %d, dev[0x%x,0x%x]\n", __func__, idx,
			 dev_map[i].device_id, ds2_dap_params_states.device);
			 dev_map[idx].device_id, ds2_dap_params_states.device);
		dev_map[idx].active = true;
		dev_map[idx].copp_idx = copp_idx;
		dolby_data.param_id = DOLBY_COMMIT_ALL_TO_DSP;