commit | 2820cfdc08178c55efa1c0fa402f082ef09bfe70 | [log] [tgz] |
---|---|---|
author | Arnd Bergmann <arnd@arndb.de> | Thu Jan 16 15:58:41 2020 +0100 |
committer | Arnd Bergmann <arnd@arndb.de> | Fri Jul 23 14:40:00 2021 +0200 |
tree | 41a09cdb09e78200e39af196dff143a977464936 | |
parent | 2f69b04a88687626b044a66661c570ca0ca6a0fc [diff] |
hexagon: use generic strncpy/strnlen from_user Remove the hexagon implementation of strncpy/strnlen and instead use the generic version. The hexagon version reads the data twice for strncpy() by doing an extra strnlen(), and it apparently lacks a check for user_addr_max(). Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Arnd Bergmann <arnd@arndb.de>