lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 19 Sep 2018 16:50:55 +0000
From:   "haiqing.shq" <leviathan0992@...il.com>
To:     akpm@...ux-foundation.org
Cc:     jack@...e.cz, mgorman@...hsingularity.net, ak@...ux.intel.com,
        yang.s@...baba-inc.com, linux-kernel@...r.kernel.org,
        linux-mm@...ck.org, "haiqing.shq" <leviathan0992@...il.com>
Subject: [PATCH] mm/filemap.c: Use existing variable

From: "haiqing.shq" <leviathan0992@...il.com>

Use the variable write_len instead of ov_iter_count(from).

Signed-off-by: haiqing.shq <leviathan0992@...il.com>
---
 mm/filemap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/filemap.c b/mm/filemap.c
index 52517f2..4a699ef 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -3012,7 +3012,7 @@ int pagecache_write_end(struct file *file, struct address_space *mapping,
 	if (iocb->ki_flags & IOCB_NOWAIT) {
 		/* If there are pages to writeback, return */
 		if (filemap_range_has_page(inode->i_mapping, pos,
-					   pos + iov_iter_count(from)))
+					   pos + write_len))
 			return -EAGAIN;
 	} else {
 		written = filemap_write_and_wait_range(mapping, pos,
-- 
1.8.3.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ