mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 21:18:59 +00:00
Free cluster if we fail to create the dmamap.
Fixes CID 1829 Found by: Coverity
This commit is contained in:
parent
c5136f2fc8
commit
5f1e4ae331
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168890
@ -481,9 +481,7 @@ refill_fl(adapter_t *sc, struct sge_fl *q, int n)
|
||||
if ((sd->flags & RX_SW_DESC_MAP_CREATED) == 0) {
|
||||
if ((err = bus_dmamap_create(q->entry_tag, 0, &sd->map))) {
|
||||
log(LOG_WARNING, "bus_dmamap_create failed %d\n", err);
|
||||
/*
|
||||
* XXX free cluster
|
||||
*/
|
||||
uma_zfree(q->zone, cl);
|
||||
goto done;
|
||||
}
|
||||
sd->flags |= RX_SW_DESC_MAP_CREATED;
|
||||
|
Loading…
Reference in New Issue
Block a user