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

Commit 0c14c0b8 authored by Tharun Kumar Merugu's avatar Tharun Kumar Merugu
Browse files

msm: adsprpc: Maintain the same structures in kernel and user-space



Mismatch in structures in user-space and kernel is leading to
unknown ioctl code and leading to failure in FASTRPC_IOCTL_CONTROL call.

Change-Id: Ic1570f9c86d20c50ad3545f2a10f9253d503c4b5
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
parent c9b7204d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -132,6 +132,11 @@ struct compat_fastrpc_ctrl_latency {
	compat_uint_t level;	/* level of control */
};

#define FASTRPC_CONTROL_SMMU (2)
struct compat_fastrpc_ctrl_smmu {
	compat_uint_t sharedcb;
};

#define FASTRPC_CONTROL_KALLOC		(3)
struct compat_fastrpc_ctrl_kalloc {
	compat_uint_t kalloc_support; /* Remote memory allocation from kernel */
@@ -141,6 +146,7 @@ struct compat_fastrpc_ioctl_control {
	compat_uint_t req;
	union {
		struct compat_fastrpc_ctrl_latency lp;
		struct compat_fastrpc_ctrl_smmu smmu;
		struct compat_fastrpc_ctrl_kalloc kalloc;
	};
};