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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251945
@ -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…
Reference in New Issue
Block a user