mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
xtensa: uaccess: Add missing __user to strncpy_from_user() prototype
[ Upstream commitdc293f2106] When adding __user annotations in commit2adf5352a3, the strncpy_from_user() function declaration for the CONFIG_GENERIC_STRNCPY_FROM_USER case was missed. Fix it. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Message-Id: <20200831210937.17938-1-laurent.pinchart@ideasonboard.com> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
448ad389cb
commit
0b1f2cff16
@@ -291,7 +291,7 @@ strncpy_from_user(char *dst, const char *src, long count)
|
||||
return -EFAULT;
|
||||
}
|
||||
#else
|
||||
long strncpy_from_user(char *dst, const char *src, long count);
|
||||
long strncpy_from_user(char *dst, const char __user *src, long count);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user