usb: u_ether: Add missing rx_work init
authorMatthew Moeller <moeller.matt@gmail.com>
Thu, 10 Mar 2016 02:19:25 +0000 (20:19 -0600)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 7 Apr 2016 11:19:58 +0000 (16:49 +0530)
commit 398a708ed5f3ef771d96dfb9b95b5d5170d17eb7
usb: u_ether: Add workqueue as bottom half handler for rx data path

set up a worker for the rx data path but missed a case where the
work_struct needed to be initialized.

This patch adds the missing 'INIT_WORK'

Change-Id: I2daabd39d35b3e17a3054837282d649d9c78a0aa
Signed-off-by: Matthew Moeller <moeller.matt@gmail.com>
drivers/usb/gadget/function/u_ether.c

index 76b25445c6adfbedc19c50adf60d8b1d0c0e0afb..dd73dfe5dcabc65ac8c5c4061bf56da4a6c5eae5 100644 (file)
@@ -1014,6 +1014,7 @@ struct net_device *gether_setup_name_default(const char *netname)
        spin_lock_init(&dev->lock);
        spin_lock_init(&dev->req_lock);
        INIT_WORK(&dev->work, eth_work);
+       INIT_WORK(&dev->rx_work, process_rx_w);
        INIT_LIST_HEAD(&dev->tx_reqs);
        INIT_LIST_HEAD(&dev->rx_reqs);