diff options
Diffstat (limited to 'arch/mips/mm')
-rw-r--r-- | arch/mips/mm/cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/mm/cache.c b/arch/mips/mm/cache.c index 611b48dde737..314701a66b13 100644 --- a/arch/mips/mm/cache.c +++ b/arch/mips/mm/cache.c | |||
@@ -56,6 +56,8 @@ EXPORT_SYMBOL(_dma_cache_inv); | |||
56 | asmlinkage int sys_cacheflush(unsigned long __user addr, | 56 | asmlinkage int sys_cacheflush(unsigned long __user addr, |
57 | unsigned long bytes, unsigned int cache) | 57 | unsigned long bytes, unsigned int cache) |
58 | { | 58 | { |
59 | if (bytes == 0) | ||
60 | return 0; | ||
59 | if (!access_ok(VERIFY_WRITE, (void __user *) addr, bytes)) | 61 | if (!access_ok(VERIFY_WRITE, (void __user *) addr, bytes)) |
60 | return -EFAULT; | 62 | return -EFAULT; |
61 | 63 | ||