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

Commit 56054fb2 authored by Venkateshwarlu Domakonda's avatar Venkateshwarlu Domakonda
Browse files

radio-iris: Fix the possibility of NULL pointer access



Added a NULL check, before accessing.

Change-Id: I8f58fc17a472474cc9665b9dc5ea322b8c1dab30
CRs-Fixed: 794876
Signed-off-by: default avatarVenkateshwarlu Domakonda <vdomak@codeaurora.org>
parent fb9b44e7
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
/* Copyright (c) 2011-2014, The Linux Foundation. All rights reserved
/* Copyright (c) 2011-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
@@ -3598,8 +3598,9 @@ END:
	if (retval > 0)
		retval = -EINVAL;
	if (retval < 0)
		FMDERR("get control failed with %d, id: %d\n",
			retval, ctrl->id);
		FMDERR("get control failed with %d\n", retval);
	if (ctrl != NULL)
		FMDERR("get control failed id: %d\n", ctrl->id);

	return retval;
}