Linux wireless drivers development
 help / color / mirror / Atom feed
* question about ...: wrong count at exit"
@ 2008-05-29  7:37 Holger Schurig
  2008-05-29  7:49 ` Johannes Berg
  0 siblings, 1 reply; 7+ messages in thread
From: Holger Schurig @ 2008-05-29  7:37 UTC (permalink / raw)
  To: Linux Wireless; +Cc: libertas-dev

After pulling the newest sparse, I got some new sparse warnings
which puzzle me. Here's one of them:

drivers/net/wireless/libertas/main.c:477:9: warning: context imbalance in 'lbs_eth_stop': wrong count at exit
drivers/net/wireless/libertas/main.c:477:9:    context 'lock': wanted 0, got 1

However, the function looks quite innocent, and I cannot see
any imbalance there. Did I oversee something or is that a
problem of sparse?

static int lbs_eth_stop(struct net_device *dev)
{
        struct lbs_private *priv = (struct lbs_private *) dev->priv;

        lbs_deb_enter(LBS_DEB_NET);

        spin_lock_irq(&priv->driver_lock);
        priv->infra_open = 0;
        netif_stop_queue(dev);
        spin_unlock_irq(&priv->driver_lock);

        schedule_work(&priv->mcast_work);

        lbs_deb_leave(LBS_DEB_NET);
        return 0;
}

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-05-29  8:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-29  7:37 question about ...: wrong count at exit" Holger Schurig
2008-05-29  7:49 ` Johannes Berg
2008-05-29  8:05   ` Holger Schurig
2008-05-29  8:07     ` Johannes Berg
2008-05-29  8:07   ` Tomas Winkler
2008-05-29  8:33     ` Johannes Berg
2008-05-29  8:37       ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox