Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sdmmc size check was backwards.



details:   https://anonhg.NetBSD.org/src/rev/25fca0b41312
branches:  trunk
changeset: 968164:25fca0b41312
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Jan 04 14:52:52 2020 +0000

description:
size check was backwards.

diffstat:

 sys/dev/sdmmc/if_bwfm_sdio.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f26ced05a275 -r 25fca0b41312 sys/dev/sdmmc/if_bwfm_sdio.c
--- a/sys/dev/sdmmc/if_bwfm_sdio.c      Sat Jan 04 14:24:51 2020 +0000
+++ b/sys/dev/sdmmc/if_bwfm_sdio.c      Sat Jan 04 14:52:52 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bwfm_sdio.c,v 1.11 2020/01/01 12:17:13 jmcneill Exp $ */
+/* $NetBSD: if_bwfm_sdio.c,v 1.12 2020/01/04 14:52:52 mlelstv Exp $ */
 /* $OpenBSD: if_bwfm_sdio.c,v 1.1 2017/10/11 17:19:50 patrick Exp $ */
 /*
  * Copyright (c) 2010-2016 Broadcom Corporation
@@ -1728,7 +1728,7 @@
        if (err)
                return 1;
 
-       if (m->m_len < *lenp) {
+       if (m->m_len > *lenp) {
                m_freem(m);
                return 1;
        }



Home | Main Index | Thread Index | Old Index