Module Name: src Committed By: jdolecek Date: Wed Jun 24 14:33:08 UTC 2020
Modified Files: src/sys/arch/xen/xen: if_xennet_xenbus.c Log Message: fix tyop in KASSERT() condition which made it an assignment rather than a check the field indeed is supposed to be set to GRANT_INVALID_REF at this moment, the grant must be already revoked by this time pointed out by Taylor R Campbell To generate a diff of this commit: cvs rdiff -u -r1.126 -r1.127 src/sys/arch/xen/xen/if_xennet_xenbus.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/xen/xen/if_xennet_xenbus.c diff -u src/sys/arch/xen/xen/if_xennet_xenbus.c:1.126 src/sys/arch/xen/xen/if_xennet_xenbus.c:1.127 --- src/sys/arch/xen/xen/if_xennet_xenbus.c:1.126 Thu May 14 13:25:40 2020 +++ src/sys/arch/xen/xen/if_xennet_xenbus.c Wed Jun 24 14:33:08 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: if_xennet_xenbus.c,v 1.126 2020/05/14 13:25:40 jdolecek Exp $ */ +/* $NetBSD: if_xennet_xenbus.c,v 1.127 2020/06/24 14:33:08 jdolecek Exp $ */ /* * Copyright (c) 2006 Manuel Bouyer. @@ -81,7 +81,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_xennet_xenbus.c,v 1.126 2020/05/14 13:25:40 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_xennet_xenbus.c,v 1.127 2020/06/24 14:33:08 jdolecek Exp $"); #include "opt_xen.h" #include "opt_nfs_boot.h" @@ -774,7 +774,7 @@ xennet_alloc_rx_buffer(struct xennet_xen KASSERT(req != NULL); KASSERT(req == &sc->sc_rxreqs[req->rxreq_id]); KASSERT(req->rxreq_m == NULL); - KASSERT(req->rxreq_gntref = GRANT_INVALID_REF); + KASSERT(req->rxreq_gntref == GRANT_INVALID_REF); MGETHDR(m, M_DONTWAIT, MT_DATA); if (__predict_false(m == NULL)) {