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

Commit ce395960 authored by Al Viro's avatar Al Viro
Browse files

constify copy_siginfo_to_user{,32}()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 078d8e62
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -150,7 +150,7 @@ static inline int get_sigset_t(sigset_t *set,
	return 0;
	return 0;
}
}


int copy_siginfo_to_user32(compat_siginfo_t __user *to, siginfo_t *from)
int copy_siginfo_to_user32(compat_siginfo_t __user *to, const siginfo_t *from)
{
{
	int err;
	int err;


+1 −1
Original line number Original line Diff line number Diff line
@@ -105,7 +105,7 @@ restore_sigcontext (struct sigcontext __user *sc, struct sigscratch *scr)
}
}


int
int
copy_siginfo_to_user (siginfo_t __user *to, siginfo_t *from)
copy_siginfo_to_user (siginfo_t __user *to, const siginfo_t *from)
{
{
	if (!access_ok(VERIFY_WRITE, to, sizeof(siginfo_t)))
	if (!access_ok(VERIFY_WRITE, to, sizeof(siginfo_t)))
		return -EFAULT;
		return -EFAULT;
+1 −1
Original line number Original line Diff line number Diff line
@@ -314,7 +314,7 @@ SYSCALL_DEFINE3(32_sigaction, long, sig, const struct compat_sigaction __user *,
	return ret;
	return ret;
}
}


int copy_siginfo_to_user32(compat_siginfo_t __user *to, siginfo_t *from)
int copy_siginfo_to_user32(compat_siginfo_t __user *to, const siginfo_t *from)
{
{
	int err;
	int err;


+1 −1
Original line number Original line Diff line number Diff line
@@ -319,7 +319,7 @@ copy_siginfo_from_user32 (siginfo_t *to, compat_siginfo_t __user *from)
}
}


int
int
copy_siginfo_to_user32 (compat_siginfo_t __user *to, siginfo_t *from)
copy_siginfo_to_user32 (compat_siginfo_t __user *to, const siginfo_t *from)
{
{
	compat_uptr_t addr;
	compat_uptr_t addr;
	compat_int_t val;
	compat_int_t val;
+1 −1
Original line number Original line Diff line number Diff line
@@ -34,7 +34,7 @@ struct compat_ucontext {


/* ELF32 signal handling */
/* ELF32 signal handling */


int copy_siginfo_to_user32 (compat_siginfo_t __user *to, siginfo_t *from);
int copy_siginfo_to_user32 (compat_siginfo_t __user *to, const siginfo_t *from);
int copy_siginfo_from_user32 (siginfo_t *to, compat_siginfo_t __user *from);
int copy_siginfo_from_user32 (siginfo_t *to, compat_siginfo_t __user *from);


/* In a deft move of uber-hackery, we decide to carry the top half of all
/* In a deft move of uber-hackery, we decide to carry the top half of all
Loading