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

Commit f361dbda authored by Pooja Kumari's avatar Pooja Kumari
Browse files

msm:ipa3: Fixed pointer dereference issue without checking for null



Checking of null is added before sending it to function.

Change-Id: I49e4c78394a790d8d8f3b2ebca56405c61a83543
Acked-by: default avatarRishabh Garg <rishgarg@qti.qualcomm.com>
Signed-off-by: default avatarPooja Kumari <kumarip@codeaurora.org>
parent dbb19355
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2019,2020 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
@@ -548,7 +548,7 @@ int ipa3_send_msg(struct ipa_msg_meta *meta, void *buff,
	mutex_lock(&ipa3_ctx->msg_lock);
	list_add_tail(&msg->link, &ipa3_ctx->msg_list);
	/* support for softap client event cache */
	if (wlan_msg_process(meta, buff))
	if (buff != NULL && wlan_msg_process(meta, buff))
		IPAERR("wlan_msg_process failed\n");

	/* unlock only after process */