Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci add an annotation.



details:   https://anonhg.NetBSD.org/src/rev/27ffe0f7a43c
branches:  trunk
changeset: 829389:27ffe0f7a43c
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 28 16:12:41 2018 +0000

description:
add an annotation.

diffstat:

 sys/dev/pci/if_iwn.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 1e5f39053e2b -r 27ffe0f7a43c sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Sun Jan 28 15:48:44 2018 +0000
+++ b/sys/dev/pci/if_iwn.c      Sun Jan 28 16:12:41 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_iwn.c,v 1.87 2018/01/16 07:05:24 maxv Exp $ */
+/*     $NetBSD: if_iwn.c,v 1.88 2018/01/28 16:12:41 christos Exp $     */
 /*     $OpenBSD: if_iwn.c,v 1.135 2014/09/10 07:22:09 dcoppa Exp $     */
 
 /*-
@@ -22,7 +22,7 @@
  * adapters.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.87 2018/01/16 07:05:24 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.88 2018/01/28 16:12:41 christos Exp $");
 
 #define IWN_USE_RBUF   /* Use local storage for RX */
 #undef IWN_HWCRYPTO    /* XXX does not even compile yet */
@@ -3394,6 +3394,10 @@
        cmd->flags = 0;
        cmd->qid = ring->qid;
        cmd->idx = ring->cur;
+       /*
+        * Coverity:[OUT_OF_BOUNDS]
+        * false positive since, allocated in mbuf if it does not fit
+        */
        memcpy(cmd->data, buf, size);
 
        desc->nsegs = 1;



Home | Main Index | Thread Index | Old Index