qede: fix general protection fault may occur on probe
Orabug:
25477939
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>
(cherry picked from commit
22b1ae6169e3cb9e33ba549a0c07a0cc469143d7)
Signed-off-by: Brian Maly <brian.maly@oracle.com>