]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r273546
authorloos <loos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 9 Jan 2015 02:43:17 +0000 (02:43 +0000)
committerloos <loos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 9 Jan 2015 02:43:17 +0000 (02:43 +0000)
commitec6f28508d70eae0e56aab6f34495e6dcc718d95
tree195d754f894daeb9769c64e436f8f59bc5f93323
parent401427c97661ded07dd88d162ed168c2585cc5cd
MFC: r273546

Fix a bug where some DTS layouts could cause the premature ending of the
search (i.e. without returning any result) and you would end up with a
random MAC address.

Change the search algorithm to a recursive one to ensure that all the nodes
on DTS will be verified.

The previous algorithm could not keep up if the DTS has too many sub-nodes.

While here, fix the punctuation on comments.

git-svn-id: svn://svn.freebsd.org/base/stable/10@276873 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/usb/net/if_smsc.c