diff options
Diffstat (limited to 'sys/arch/amd64/stand/efi32/diskprobe.c')
-rw-r--r-- | sys/arch/amd64/stand/efi32/diskprobe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/efi32/diskprobe.c b/sys/arch/amd64/stand/efi32/diskprobe.c index 7f5c42cd9a1..48f089c296f 100644 --- a/sys/arch/amd64/stand/efi32/diskprobe.c +++ b/sys/arch/amd64/stand/efi32/diskprobe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diskprobe.c,v 1.1 2019/05/11 02:33:34 mlarkin Exp $ */ +/* $OpenBSD: diskprobe.c,v 1.2 2020/12/09 18:10:18 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -295,7 +295,7 @@ check_hibernate(struct diskinfo *dip) DL_GETPSIZE(&dip->disklabel.d_partitions[1]) - (sizeof(union hibernate_info) / DEV_BSIZE); - error = dip->strategy(dip, F_READ, (daddr32_t)sec, sizeof hib, &hib, NULL); + error = dip->strategy(dip, F_READ, sec, sizeof hib, &hib, NULL); if (error == 0 && hib.magic == HIBERNATE_MAGIC) dip->bios_info.flags |= BDI_HIBVALID; /* Hibernate present */ } |