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>
This commit is contained in:
Amrani, Ram 2016-11-23 08:03:04 +00:00 committed by Doug Ledford
parent aecb66b2b0
commit 22b1ae6169
1 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ int qede_roce_register_driver(struct qedr_driver *drv)
}
mutex_unlock(&qedr_dev_list_lock);
DP_INFO(edev, "qedr: discovered and registered %d RoCE funcs\n",
pr_notice("qedr: discovered and registered %d RoCE funcs\n",
qedr_counter);
return 0;