cxgb4vf: Add a couple more checks for invalid provisioning configurations
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
495c22bbb2
Коммит
28f71c6df4
|
@ -2361,6 +2361,11 @@ static int adap_init0(struct adapter *adapter)
|
|||
}
|
||||
|
||||
/* Check for various parameter sanity issues */
|
||||
if (adapter->params.vfres.pmask == 0) {
|
||||
dev_err(adapter->pdev_dev, "no port access configured\n"
|
||||
"usable!\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
if (adapter->params.vfres.nvi == 0) {
|
||||
dev_err(adapter->pdev_dev, "no virtual interfaces configured/"
|
||||
"usable!\n");
|
||||
|
|
Загрузка…
Ссылка в новой задаче