diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index 7e4fa9c68c1dd08536fb515a971a8416df5fb684..4463342930d3a67726218b5e0d34d53637628df0 100644 --- a/fs/proc/kcore.c +++ b/fs/proc/kcore.c @@ -599,6 +599,7 @@ static ssize_t read_kcore_iter(struct kiocb *iocb, struct iov_iter *iter) ret = -EFAULT; goto out; } + ret = 0; /* * We know the bounce buffer is safe to copy from, so * use _copy_to_iter() directly.