Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/imcsmb The controller only supports 1-byte "commands"



details:   https://anonhg.NetBSD.org/src/rev/0c7a2964c766
branches:  trunk
changeset: 359848:0c7a2964c766
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Tue Feb 27 05:43:20 2018 +0000

description:
The controller only supports 1-byte "commands"

diffstat:

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

diffs (12 lines):

diff -r 16bdeab74321 -r 0c7a2964c766 sys/dev/imcsmb/imcsmb.c
--- a/sys/dev/imcsmb/imcsmb.c   Tue Feb 27 04:58:27 2018 +0000
+++ b/sys/dev/imcsmb/imcsmb.c   Tue Feb 27 05:43:20 2018 +0000
@@ -247,7 +247,7 @@
        uint8_t lbyte;
        uint8_t cmd;
 
-       if ((cmdlen > 1) || (len > 2) || (len < 1))
+       if ((cmdlen != 1) || (len > 2) || (len < 1))
                return EINVAL;
 
        byte = (uint8_t *) buf;



Home | Main Index | Thread Index | Old Index