[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130410.152729.217349451145514475.davem@davemloft.net>
Date: Wed, 10 Apr 2013 15:27:29 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: yuvalmin@...adcom.com
Cc: netdev@...r.kernel.org, ariele@...adcom.com, eilong@...adcom.com
Subject: Re: [PATCH net] bnx2x: Prevent null pointer dereference in AFEX
mode
From: "Yuval Mintz" <yuvalmin@...adcom.com>
Date: Wed, 10 Apr 2013 13:34:39 +0300
> The cnic module is responsible for initializing various bnx2x structs
> via callbacks provided by the bnx2x module.
> One such struct is the queue object for the FCoE queue.
>
> If a device is working in AFEX mode and its configuration allows FCoE yet
> the cnic module is not loaded, it's very likely a null pointer dereference
> will occur, as the bnx2x will erroneously access the FCoE's queue object.
>
> Prevent said access until cnic properly registers itself.
>
> Signed-off-by: Yuval Mintz <yuvalmin@...adcom.com>
> Signed-off-by: Ariel Elior <ariele@...adcom.com>
> Signed-off-by: Eilon Greenstein <eilong@...adcom.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists