iflib: Fix a NULL pointer deref
rxd_frag_to_sd() have pf_rv parameter as NULL with the current code. This patch fixes the NULL pointer dereference in that case thus avoiding a possible panic. Submitted by: rajesh1.kumar at amd.com Reviewed by: gallatin Differential Revision: https://reviews.freebsd.org/D28115
This commit is contained in:
parent
523d94dbea
commit
0c864213ef
@ -2654,7 +2654,8 @@ rxd_frag_to_sd(iflib_rxq_t rxq, if_rxd_frag_t irf, bool unload, if_rxsd_t sd,
|
||||
}
|
||||
} else {
|
||||
fl->ifl_sds.ifsd_m[cidx] = NULL;
|
||||
*pf_rv = PFIL_PASS;
|
||||
if (pf_rv != NULL)
|
||||
*pf_rv = PFIL_PASS;
|
||||
}
|
||||
|
||||
if (unload && irf->irf_len != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user