Skip to content

Commit adc4ea8

Browse files
authored
Merge pull request #318 from fredericdalleau/various-fixes
Fix assertion turned into assignment
2 parents acbc2d1 + cf60095 commit adc4ea8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ OCAML_LDLIBS := -L $(OCAML_WHERE) \
115115
$(shell ocamlfind query cstruct)/cstruct.a \
116116
$(shell ocamlfind query cstruct)/libcstruct_stubs.a \
117117
$(shell ocamlfind query io-page)/io_page.a \
118+
$(shell ocamlfind query io-page)/libio_page_stubs.a \
118119
$(shell ocamlfind query io-page-unix)/io_page_unix.a \
119120
$(shell ocamlfind query io-page-unix)/libio_page_unix_stubs.a \
120121
$(shell ocamlfind query lwt.unix)/liblwt_unix_stubs.a \

src/lib/pci_virtio_block.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ pci_vtblk_proc(struct pci_vtblk_softc *sc, struct vqueue_info *vq)
316316
case VBH_OP_DISCARD:
317317
/* We currently limit the discard to one segment in the initial negotiation
318318
so expect exactly one correctly-sized payload descriptor. */
319-
assert(iov[1].iov_len = sizeof(struct virtio_blk_discard_write_zeroes));
319+
assert(iov[1].iov_len == sizeof(struct virtio_blk_discard_write_zeroes));
320320
assert(n == 2);
321321
vbdiscard = iov[1].iov_base;
322322
io->io_req.br_offset = (off_t) vbdiscard->sector * DEV_BSIZE;

0 commit comments

Comments
 (0)