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

Commit bd1e4dfd authored by Faiz Nabi Kuchay's avatar Faiz Nabi Kuchay
Browse files

asoc: codecs: Increase size of proc_name



Increase size of proc_name to prevent buffer overflow in snprintf
function.

Change-Id: I183d2762d2d60c4b40969b1ddce9b4d5588e7051
Signed-off-by: default avatarFaiz Nabi Kuchay <fkuchay@codeaurora.org>
parent 89924096
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2014-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2019, The Linux Foundation. All rights reserved.
 */

#include <linux/module.h>
@@ -52,7 +52,7 @@
	mutex_unlock(lock);			\
}

#define WCD_CPE_STATE_MAX_LEN 11
#define WCD_CPE_STATE_MAX_LEN 32
#define CPE_OFFLINE_WAIT_TIMEOUT (2 * HZ)
#define CPE_READY_WAIT_TIMEOUT (3 * HZ)
#define WCD_CPE_SYSFS_DIR_MAX_LENGTH 32