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

Commit aa022618 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: adsprpc: destroy mutex before file free"

parents 9856d842 8714e647
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2764,6 +2764,7 @@ static int fastrpc_file_free(struct fastrpc_file *fl)
	mutex_unlock(&fl->perf_mutex);
	mutex_destroy(&fl->perf_mutex);
	mutex_destroy(&fl->fl_map_mutex);
	mutex_destroy(&fl->map_mutex);
	kfree(fl);
	return 0;
}
@@ -2777,7 +2778,6 @@ static int fastrpc_device_release(struct inode *inode, struct file *file)
			pm_qos_remove_request(&fl->pm_qos_req);
		if (fl->debugfs_file != NULL)
			debugfs_remove(fl->debugfs_file);
		mutex_destroy(&fl->map_mutex);
		fastrpc_file_free(fl);
		file->private_data = NULL;
	}