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

Commit da197271 authored by Hamad Kadmany's avatar Hamad Kadmany
Browse files

media: dvb: Protect against variable update



DVR device variables may be modified by DVR input
thread which protects against the variables
update using a spin-lock. Such protection is required
also when variables are updated in DVR release function
that is executed upon user-space request.

Change-Id: I5d6a7aeba0a74f2496d7b645321d379cba6fb8b7
Signed-off-by: default avatarHamad Kadmany <hkadmany@codeaurora.org>
parent c5b954d0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -951,7 +951,9 @@ static int dvb_dvr_release(struct inode *inode, struct file *file)
	} else {
		int i;

		spin_lock(&dmxdev->dvr_in_lock);
		dmxdev->dvr_in_exit = 1;
		spin_unlock(&dmxdev->dvr_in_lock);

		wake_up_all(&dmxdev->dvr_cmd_buffer.queue);