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

Commit 0cffef48 authored by Frank Blaschka's avatar Frank Blaschka Committed by David S. Miller
Browse files

qeth: fix race condition during device startup



QDIO is running independent from netdevice state. We are not
allowed to schedule NAPI in case the netdevice is not open.

Signed-off-by: default avatarFrank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b67d801f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2903,7 +2903,7 @@ void qeth_qdio_start_poll(struct ccw_device *ccwdev, int queue,
{
	struct qeth_card *card = (struct qeth_card *)card_ptr;

	if (card->dev)
	if (card->dev && (card->dev->flags & IFF_UP))
		napi_schedule(&card->napi);
}
EXPORT_SYMBOL_GPL(qeth_qdio_start_poll);