Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/imcsmb For byte-writes we only load an 8-bit quantity



details:   https://anonhg.NetBSD.org/src/rev/71639ce63117
branches:  trunk
changeset: 830151:71639ce63117
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Tue Feb 27 05:47:10 2018 +0000

description:
For byte-writes we only load an 8-bit quantity

diffstat:

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

diffs (12 lines):

diff -r 486f86e730ab -r 71639ce63117 sys/dev/imcsmb/imcsmb.c
--- a/sys/dev/imcsmb/imcsmb.c   Tue Feb 27 05:45:14 2018 +0000
+++ b/sys/dev/imcsmb/imcsmb.c   Tue Feb 27 05:47:10 2018 +0000
@@ -331,7 +331,7 @@
                        /* For byte operations, the data goes in the LSB, and
                         * the MSB is a don't care.
                         */
-                       lword = *(uint16_t *) buf;
+                       lword = *(uint8_t *) buf;
                }
                cmd_val |= lword;
        }



Home | Main Index | Thread Index | Old Index