--- zzzz-none-000/linux-3.10.107/drivers/usb/usb-skeleton.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/usb/usb-skeleton.c 2021-02-04 17:41:59.000000000 +0000 @@ -14,7 +14,6 @@ #include #include -#include #include #include #include @@ -325,9 +324,8 @@ rv = skel_do_read_io(dev, count); if (rv < 0) goto exit; - else if (!(file->f_flags & O_NONBLOCK)) + else goto retry; - rv = -EAGAIN; } exit: mutex_unlock(&dev->io_mutex);