summaryrefslogtreecommitdiffstats
path: root/sys/dev/xen
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-08-24 04:42:41 +0000
committerkmacy <kmacy@FreeBSD.org>2008-08-24 04:42:41 +0000
commit09865bc91a074052523008139a9215a27e916fa6 (patch)
treee1799692887eca6786d7ca934fb0a6106a6265cd /sys/dev/xen
parent54198745621b7e69edc3ab3da2659d6565f51b66 (diff)
downloadFreeBSD-src-09865bc91a074052523008139a9215a27e916fa6.zip
FreeBSD-src-09865bc91a074052523008139a9215a27e916fa6.tar.gz
Evidently the block device starts at 767.
MFC after: 1 month
Diffstat (limited to 'sys/dev/xen')
-rw-r--r--sys/dev/xen/blkfront/blkfront.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/xen/blkfront/blkfront.c b/sys/dev/xen/blkfront/blkfront.c
index cd42880..17202b1 100644
--- a/sys/dev/xen/blkfront/blkfront.c
+++ b/sys/dev/xen/blkfront/blkfront.c
@@ -142,7 +142,7 @@ xlvbd_add(blkif_sector_t capacity, int unit, uint16_t vdisk_info, uint16_t secto
{
struct xb_softc *sc;
int error = 0;
- int unitno = unit - 768;
+ int unitno = unit - 767;
sc = (struct xb_softc *)malloc(sizeof(*sc), M_DEVBUF, M_WAITOK|M_ZERO);
sc->xb_unit = unitno;
OpenPOWER on IntegriCloud