diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2010-12-06 20:40:15 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2010-12-06 20:40:15 +0000 |
| commit | 518c82436282a48cfb2e0f146642add83d6372bc (patch) | |
| tree | 1667d97ac869cca62dfd17a4af43c2fa9ed68bdb /sys/dev/xen/blkfront | |
| parent | 087bfb0e6b4327e72e1076cd5a730601784dd395 (diff) | |
Notes
Diffstat (limited to 'sys/dev/xen/blkfront')
| -rw-r--r-- | sys/dev/xen/blkfront/blkfront.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/xen/blkfront/blkfront.c b/sys/dev/xen/blkfront/blkfront.c index 8ff87574bd5b..2e08bb1d2108 100644 --- a/sys/dev/xen/blkfront/blkfront.c +++ b/sys/dev/xen/blkfront/blkfront.c @@ -508,7 +508,7 @@ blkfront_initialize(struct xb_softc *sc) sc->ring_pages = 1; sc->max_requests = BLKIF_MAX_RING_REQUESTS(PAGE_SIZE); sc->max_request_segments = BLKIF_MAX_SEGMENTS_PER_HEADER_BLOCK; - sc->max_request_size = sc->max_request_segments * PAGE_SIZE; + sc->max_request_size = (sc->max_request_segments - 1) * PAGE_SIZE; sc->max_request_blocks = BLKIF_SEGS_TO_BLOCKS(sc->max_request_segments); /* |
