Pass proper memory type to free() in ata_ali_chipinit().
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 1 week
This commit is contained in:
parent
95b63ba99b
commit
fc86e75ca5
@ -133,7 +133,7 @@ ata_ali_chipinit(device_t dev)
|
||||
for (i--; i >=0; i--)
|
||||
bus_release_resource(dev, SYS_RES_IOPORT,
|
||||
PCIR_BAR(i), res->bars[i]);
|
||||
free(res, M_TEMP);
|
||||
free(res, M_ATAPCI);
|
||||
return ENXIO;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user