qede: fix general protection fault may occur on probe
authorAmrani, Ram <Ram.Amrani@cavium.com>
Wed, 23 Nov 2016 08:03:04 +0000 (08:03 +0000)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Dec 2016 19:16:49 +0000 (14:16 -0500)
commit22b1ae6169e3cb9e33ba549a0c07a0cc469143d7
tree5f1a43edee54b46af8629bba75f187b700de016a
parentaecb66b2b01a87b4b723267b9193c8f00d661c1f
qede: fix general protection fault may occur on probe

The recent introduction of qedr driver support in qede causes a GPF when probing the driver in a server without a RoCE enabled QLogic NIC. This fix avoids using an uninitialized pointer in such a case. Caught by the kernel test robot.

Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/net/ethernet/qlogic/qede/qede_roce.c