summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kbdcontrol/kbdcontrol.c
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2004-08-09 03:13:57 +0000
committeryongari <yongari@FreeBSD.org>2004-08-09 03:13:57 +0000
commit2b707fbd8fb9f2858a26eea1d2962ad18c405966 (patch)
treec6d723e3cdd89b4887f0502ec0743f3cab225991 /usr.sbin/kbdcontrol/kbdcontrol.c
parent2f658d62e3282352e7af9201055c13e8ce625da6 (diff)
downloadFreeBSD-src-2b707fbd8fb9f2858a26eea1d2962ad18c405966.zip
FreeBSD-src-2b707fbd8fb9f2858a26eea1d2962ad18c405966.tar.gz
Fix long standing mediaopt setting bugs seen on sparc64. Though
the bug exists in little-endian machine, it was not triggered due to the difference of memory ordering between little/big endian machines. Instead of relying on possibly modified value during function invokcations, use saved copy of ifr.ifr_addr.sa_family. Also add a comment at the top of ifconfig.c clarifying the issue so the bug won't re-appear. Approved by: jake Reviewed by: yar
Diffstat (limited to 'usr.sbin/kbdcontrol/kbdcontrol.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud