Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[platform/kernel/linux-starfive.git] / drivers / scsi / sg.c
index 6a1c3ff..cbffa71 100644 (file)
@@ -228,11 +228,6 @@ static int sg_check_file_access(struct file *filp, const char *caller)
                        caller, task_tgid_vnr(current), current->comm);
                return -EPERM;
        }
-       if (uaccess_kernel()) {
-               pr_err_once("%s: process %d (%s) called from kernel context, this is not allowed.\n",
-                       caller, task_tgid_vnr(current), current->comm);
-               return -EACCES;
-       }
        return 0;
 }