Commit a0dbef33 authored by Al Viro's avatar Al Viro
Browse files

cxlflash: get rid of pointless access_ok()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 0db188f9
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -3383,12 +3383,6 @@ static int cxlflash_afu_debug(struct cxlflash_cfg *cfg,
			goto out;
		}

		if (unlikely(!access_ok(is_write ? VERIFY_READ : VERIFY_WRITE,
					ubuf, ulen))) {
			rc = -EFAULT;
			goto out;
		}

		buf = kmalloc(ulen + cache_line_size() - 1, GFP_KERNEL);
		if (unlikely(!buf)) {
			rc = -ENOMEM;