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

Commit 10969722 authored by Neeti Desai's avatar Neeti Desai
Browse files

msm: Return -ENOSYS when secure buffer apis are not implemented



The return value -EINVAL is returned in the case of invalid
arguments, and is not the correct value when the function is not
implemented.

Return -ENOSYS instead.

Change-Id: I196537f121d5a290fec74e2b7bcb1cfd490468c7
Signed-off-by: default avatarNeeti Desai <neetid@codeaurora.org>
parent 84bfeac2
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -44,24 +44,24 @@ bool msm_secure_v2_is_supported(void);
#else
static inline int msm_secure_table(struct sg_table *table)
{
	return -EINVAL;
	return -ENOSYS;
}
static inline int msm_unsecure_table(struct sg_table *table)
{
	return -EINVAL;
	return -ENOSYS;
}
int hyp_assign_table(struct sg_table *table,
static inline int hyp_assign_table(struct sg_table *table,
			u32 *source_vm_list, int source_nelems,
			int *dest_vmids, int *dest_perms,
			int dest_nelems)
{
	return -EINVAL;
	return -ENOSYS;
}
int hyp_assign_phys(phys_addr_t addr, u64 size,
static inline int hyp_assign_phys(phys_addr_t addr, u64 size,
			int *dest_vmids, int *dest_perms,
			int dest_nelems)
{
	return -EINVAL;
	return -ENOSYS;
}
static inline bool msm_secure_v2_is_supported(void)
{