Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3cc8d13b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: usb: rmnet: Fix the issue between disconnect and completion handler"

parents 875ce4b7 d26b227b
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -479,6 +479,11 @@ static int rmnet_usb_ctrl_write_cmd(struct rmnet_ctrl_udev *dev, u8 req,
	if (ret < 0)
		dev->tx_ctrl_err_cnt++;

	/* if we are here after device disconnect
	 * usb_unbind_interface() takes care of
	 * residual pm_autopm_get_interface_* calls
	 */
	if (test_bit(RMNET_CTRL_DEV_READY, &dev->status))
		usb_autopm_put_interface(dev->intf);

	return ret;