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

Commit da4eb27a authored by Dave Jiang's avatar Dave Jiang Committed by Jon Mason
Browse files

NTB: ntb_netdev not covering all receive errors



ntb_netdev is allowing the link to come up even when -ENOMEM is returned
from ntb_transport_rx_enqueue.  Fix to cover all possible errors.

Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent c8650fd0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -191,7 +191,7 @@ static int ntb_netdev_open(struct net_device *ndev)

		rc = ntb_transport_rx_enqueue(dev->qp, skb, skb->data,
					      ndev->mtu + ETH_HLEN);
		if (rc == -EINVAL) {
		if (rc) {
			dev_kfree_skb(skb);
			goto err;
		}