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

Commit 69865bc4 authored by Venkateshwarlu Domakonda's avatar Venkateshwarlu Domakonda
Browse files

radio: iris: Fix the possibility of NULL pointer access



- Fix the issue with null pointer access.
- When SSR triggers, SMD channel closes and
  FM driver will unregister the device.
- While unregister device, free the memory allocation
  of the device pointer.
- Added a NULL check, before accessing device.

Change-Id: I7233299d07494124a8c3628847919421970d9ceb
CRs-Fixed: 838183
Signed-off-by: default avatarVenkateshwarlu Domakonda <vdomak@codeaurora.org>
parent d842d95e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5148,6 +5148,7 @@ static int iris_fops_release(struct file *file)
		return retval;
	}
END:
	if (radio->fm_hdev != NULL)
		radio->fm_hdev->close_smd();
	if (retval < 0)
		FMDERR("Err on disable FM %d\n", retval);