[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120302.161332.2236794166581618113.davem@davemloft.net>
Date: Fri, 02 Mar 2012 16:13:32 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: santoshprasadnayak@...il.com
Cc: bhutchings@...arflare.com, jitendra.kalsaria@...gic.com,
ron.mercer@...gic.com, linux-driver@...gic.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH 1/3] qla3xxx: ethernet: Fix bogus interrupt state flag.
From: santosh prasad nayak <santoshprasadnayak@...il.com>
Date: Fri, 2 Mar 2012 21:24:29 +0530
> In "ql_adapter_initialize", first unlock is done by
> "spin_unlock_irqrestore(&qdev->hw_lock, hw_flags)"
> with "hw_flags = 0" ("hw_flags" is local variable and initialized to
> zero.), which is as good as
> spin_unlock_irq.
You must never pass to irqrestore anything other than a hw_flags
value given by irqsave or similar.
You may not assume anything about what values hw_flags takes on nor
what those values might mean, they are architecture specific so
you may not just set it to zero and assume that does anything in
particular.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists