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

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

Merge "lib: do_strncpy_from_user: Fix return error code for get_user failures"

parents a9eed3ab 5a298358
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ static inline long do_strncpy_from_user(char *dst, const char __user *src, long

		ret = __get_user(c, src + res);
		if (ret)
			return -ret;
			return -EFAULT;
		dst[res] = c;
		if (!c)
			return res;