mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 10:10:24 -04:00
avoid null ptr deref
Noticed by: Coverity Prevent analysis tool Reviewed by: scottl
This commit is contained in:
parent
fa6fc5b819
commit
72046dcea3
1 changed files with 4 additions and 3 deletions
|
|
@ -700,10 +700,11 @@ out_err:
|
|||
bus_dmamap_unload(mp->dmat, vbp->dmamap);
|
||||
if (vaddr)
|
||||
bus_dmamem_free(mp->dmat, vaddr, vbp->dmamap);
|
||||
if (vbp->dmamap)
|
||||
bus_dmamap_destroy(mp->dmat, vbp->dmamap);
|
||||
if (vbp)
|
||||
if (vbp) {
|
||||
if (vbp->dmamap)
|
||||
bus_dmamap_destroy(mp->dmat, vbp->dmamap);
|
||||
__sym_mfree(&mp0, vbp, sizeof(*vbp), "VTOB");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue