summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/md/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 6b5431c..ae1953d 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -1034,7 +1034,7 @@ mdctlioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct thread *td)
break;
case MD_PRELOAD:
mdio->md_size = sc->nsect;
- (u_char *)(uintptr_t)mdio->md_base = sc->pl_ptr;
+ mdio->md_base = (uint64_t)(intptr_t)sc->pl_ptr;
break;
case MD_SWAP:
mdio->md_size = sc->nsect * (PAGE_SIZE / DEV_BSIZE);
OpenPOWER on IntegriCloud