]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r247268:
authorgallatin <gallatin@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 5 Mar 2013 16:37:20 +0000 (16:37 +0000)
committergallatin <gallatin@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 5 Mar 2013 16:37:20 +0000 (16:37 +0000)
commit3665e423bc1b939c5c6df5f950c848ed085ad871
treeca24515c082224dd548dc2737cc2205e7312d98c
parent112c2c75867547d0785f54b0606fba7c1fd1d80b
MFC r247268:
 Several cleanups and fixes to mxge:

 - Remove vestigial null pointer tests after malloc(..., M_WAITOK).

 - Remove vestigal qualhack union

 - Use strlcpy() instead of the error-prone strncpy() when parsing
   EEPROM and copying strings

 - Check the MAC address in the EEPROM strings more strictly.

 - Expand the macro MXGE_NEXT_STRING() at its only user. Due to a typo,
   the macro was very confusing.

 - Remove unnecessary buffer limit check.  The buffer is double-NUL
   terminated per construction.

PR:             kern/176369
Submitted by:   Christoph Mallon <christoph.mallon gmx.de>

git-svn-id: svn://svn.freebsd.org/base/stable/9@247850 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/mxge/if_mxge.c