X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=module%2Felmcan.c;h=33b0add55e8adb2dc3ed28c6fee21a5654a55bff;hb=a75c082b1e3c1eb89e8fbc57d7d0a61258beafc0;hp=2fd861d54d1f5c248b0404e490abe4922102ac66;hpb=5fb4737deaaef9c365b9a8c2c3cf16504254eee7;p=elmcan.git diff --git a/module/elmcan.c b/module/elmcan.c index 2fd861d..33b0add 100644 --- a/module/elmcan.c +++ b/module/elmcan.c @@ -1215,14 +1215,14 @@ static void elmcan_ldisc_close(struct tty_struct *tty) /* At this point, all ldisc calls to us have become no-ops. */ + flush_work(&elm->tx_work); + /* Mark channel as dead */ spin_lock_bh(&elm->lock); tty->disc_data = NULL; elm->tty = NULL; spin_unlock_bh(&elm->lock); - flush_work(&elm->tx_work); - netdev_info(elm->dev, "elmcan off %s.\n", tty->name); kfree(elm->txbuf);