diff options
author | Ingo Molnar <mingo@kernel.org> | 2018-02-11 11:33:33 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-02-11 11:33:33 +0100 |
commit | 7980033bea8a74692fdb987c44ec91b0be8e752b (patch) | |
tree | 02b57329465d397b3a20468a683e56d1cda88cf6 /lib/string.c | |
parent | 3197b04bb39b596613ff2f8143c5cd0a6908debf (diff) | |
parent | f1517df8701c9f12dae9ce7f43a5d300a6917619 (diff) |
Merge branch 'linus' into x86/urgent, to pick up dependent commits
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/string.c')
-rw-r--r-- | lib/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/string.c b/lib/string.c index 64a9e33f1daa..2c0900a5d51a 100644 --- a/lib/string.c +++ b/lib/string.c @@ -203,7 +203,7 @@ ssize_t strscpy(char *dest, const char *src, size_t count) while (max >= sizeof(unsigned long)) { unsigned long c, data; - c = *(unsigned long *)(src+res); + c = read_word_at_a_time(src+res); if (has_zero(c, &data, &constants)) { data = prep_zero_mask(c, data, &constants); data = create_zero_mask(data); |