[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <309B89C4C689E141A5FF6A0C5FB2118B73157E33@ORSMSX101.amr.corp.intel.com>
Date: Tue, 18 Feb 2014 23:57:32 +0000
From: "Brown, Aaron F" <aaron.f.brown@...el.com>
To: "christoph.paasch@...ouvain.be" <christoph.paasch@...ouvain.be>
CC: "Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>,
"Brandeburg, Jesse" <jesse.brandeburg@...el.com>,
"Wyborny, Carolyn" <carolyn.wyborny@...el.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"e1000-devel@...ts.sourceforge.net"
<e1000-devel@...ts.sourceforge.net>,
"davem@...emloft.net" <davem@...emloft.net>
Subject: Re: [PATCH net] igb: Fix Null-pointer dereference in
igb_reset_q_vector
On Tue, 2014-02-18 at 14:06 +0100, Christoph Paasch wrote:
> When igb_set_interrupt_capability() calls
> igb_reset_interrupt_capability() (e.g., because CONFIG_PCI_MSI is unset),
> num_q_vectors has been set but no vector has yet been allocated.
>
> igb_reset_interrupt_capability() will then call igb_reset_q_vector,
> which assumes that the vector is allocated. As this is not the case, we
> are accessing a NULL-pointer.
>
> This patch fixes it by checking that q_vector is indeed different from
> NULL.
>
> Fixes: 02ef6e1d0b0023 (igb: Fix queue allocation method to accommodate changing during runtime)
> Cc: Carolyn Wyborny <carolyn.wyborny@...el.com>
> Signed-off-by: Christoph Paasch <christoph.paasch@...ouvain.be>
> ---
> drivers/net/ethernet/intel/igb/igb_main.c | 6 ++++++
> 1 file changed, 6 insertions(+)
Thanks Christoph, I have added this to our Jeff's internal queue.
Powered by blists - more mailing lists