We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5b942e commit 69297b0Copy full SHA for 69297b0
drivers/net/ethernet/marvell/octeontx2/nic/otx2_dcbnl.c
@@ -315,6 +315,11 @@ int otx2_config_priority_flow_ctrl(struct otx2_nic *pfvf)
315
if (!otx2_sync_mbox_msg(&pfvf->mbox)) {
316
rsp = (struct cgx_pfc_rsp *)
317
otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &req->hdr);
318
+ if (IS_ERR(rsp)) {
319
+ err = PTR_ERR(rsp);
320
+ goto unlock;
321
+ }
322
+
323
if (req->rx_pause != rsp->rx_pause || req->tx_pause != rsp->tx_pause) {
324
dev_warn(pfvf->dev,
325
"Failed to config PFC\n");
0 commit comments