*/
                submit->bos[i].flags = 0;
 
-               ret = copy_from_user_inatomic(&submit_bo, userptr, sizeof(submit_bo));
-               if (unlikely(ret)) {
+               if (copy_from_user_inatomic(&submit_bo, userptr, sizeof(submit_bo))) {
                        pagefault_enable();
                        spin_unlock(&file->table_lock);
-                       ret = copy_from_user(&submit_bo, userptr, sizeof(submit_bo));
-                       if (ret)
+                       if (copy_from_user(&submit_bo, userptr, sizeof(submit_bo))) {
+                               ret = -EFAULT;
                                goto out;
+                       }
                        spin_lock(&file->table_lock);
                        pagefault_disable();
                }
                uint64_t iova;
                bool valid;
 
-               ret = copy_from_user(&submit_reloc, userptr, sizeof(submit_reloc));
-               if (ret)
+               if (copy_from_user(&submit_reloc, userptr, sizeof(submit_reloc))) {
+                       ret = -EFAULT;
                        goto out;
+               }
 
                if (submit_reloc.submit_offset % 4) {
                        DRM_ERROR("non-aligned reloc offset: %u\n",