aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFrank Blaschka <frank.blaschka@de.ibm.com>2010-11-07 22:03:49 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-08 15:17:08 -0500
commit0cffef48ebf5060f749d8b04ab0437a4ba009e77 (patch)
treeec5aacf178b126a52f5cb61611ce64fc2a2861b1 /drivers
parentb67d801f922b989e6756579438bd493ad9052bca (diff)
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: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/s390/net/qeth_core_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
index 09ab6a2d3e49..e6b2df0e73f5 100644
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -2903,7 +2903,7 @@ void qeth_qdio_start_poll(struct ccw_device *ccwdev, int queue,
2903{ 2903{
2904 struct qeth_card *card = (struct qeth_card *)card_ptr; 2904 struct qeth_card *card = (struct qeth_card *)card_ptr;
2905 2905
2906 if (card->dev) 2906 if (card->dev && (card->dev->flags & IFF_UP))
2907 napi_schedule(&card->napi); 2907 napi_schedule(&card->napi);
2908} 2908}
2909EXPORT_SYMBOL_GPL(qeth_qdio_start_poll); 2909EXPORT_SYMBOL_GPL(qeth_qdio_start_poll);