Merge branch 'misc.compat' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-microblaze.git] / drivers / scsi / cxlflash / main.c
index 6178028..38b3a9c 100644 (file)
@@ -3393,12 +3393,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;