diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index dbc1e4457..e964e282b 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -4359,8 +4359,9 @@ static void srpt_add_one(struct ib_device *device) INIT_WORK(&sport->work, srpt_refresh_port_work); #endif if (srpt_refresh_port(sport)) { - pr_err("MAD registration failed for %s-%d. Note: this is expected for SR-IOV virtual functions.\n", + pr_err("MAD registration failed for %s-%d.\n", sdev->device->name, i); + goto err_ring; } }