mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Convert a long to rman_res_t, fixing a sign extension bug.
ahci.c had one signed long, which was passed into rman, rather than u_long. After the switch of rman_res_t from size u_long to size uintmax_t, the sign extension caused ranges to get messed up, and ahcich* to not attach. There may be more signed longs used in this way, which will be fixed as they're reported. Reported by: pho
This commit is contained in:
parent
7958a34cb5
commit
d6f8b9168f
1 changed files with 1 additions and 1 deletions
|
|
@ -527,7 +527,7 @@ ahci_alloc_resource(device_t dev, device_t child, int type, int *rid,
|
|||
{
|
||||
struct ahci_controller *ctlr = device_get_softc(dev);
|
||||
struct resource *res;
|
||||
long st;
|
||||
rman_res_t st;
|
||||
int offset, size, unit;
|
||||
|
||||
unit = (intptr_t)device_get_ivars(child);
|
||||
|
|
|
|||
Loading…
Reference in a new issue