diff options
Diffstat (limited to 'arch/s390/lib/uaccess_mvcos.c')
-rw-r--r-- | arch/s390/lib/uaccess_mvcos.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/lib/uaccess_mvcos.c b/arch/s390/lib/uaccess_mvcos.c index 7f3eb3d56024..1829742bf479 100644 --- a/arch/s390/lib/uaccess_mvcos.c +++ b/arch/s390/lib/uaccess_mvcos.c | |||
@@ -184,6 +184,8 @@ static size_t strncpy_from_user_mvcos(size_t count, const char __user *src, | |||
184 | { | 184 | { |
185 | size_t done, len, offset, len_str; | 185 | size_t done, len, offset, len_str; |
186 | 186 | ||
187 | if (unlikely(!count)) | ||
188 | return 0; | ||
187 | done = 0; | 189 | done = 0; |
188 | do { | 190 | do { |
189 | offset = (size_t)src & ~PAGE_MASK; | 191 | offset = (size_t)src & ~PAGE_MASK; |