diff --git a/drivers/net/usb/rmnet_usb_ctrl.c b/drivers/net/usb/rmnet_usb_ctrl.c index 7ed8ffaeb271..f87b3b963c3a 100644 --- a/drivers/net/usb/rmnet_usb_ctrl.c +++ b/drivers/net/usb/rmnet_usb_ctrl.c @@ -339,8 +339,10 @@ int rmnet_usb_ctrl_start_rx(struct rmnet_ctrl_dev *dev) int rmnet_usb_ctrl_suspend(struct rmnet_ctrl_dev *dev) { - if (!flush_work_sync(&dev->get_encap_work)) - usb_kill_anchored_urbs(&dev->rx_submitted); + if (work_busy(&dev->get_encap_work)) + return -EBUSY; + + usb_kill_anchored_urbs(&dev->rx_submitted); return 0; }