<span>Dear,<br><br>Using mdev, we noticed that some devices were not attached to /dev/ using &quot;mdev -s&quot;.<br>Looking at the source code, the function which walk through the /sys/ tree make use of lstat, but the /sys tree can use symlink as seen here : 
<br><br>$ ls -l /sys/class/misc/<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 Jan&nbsp; 1&nbsp; 1970 watchdog -&gt; ../../devices/platform/at91sam9x_wdt/watchdog<br><br>Doing so, the function can&#39;t walk through symbolic links. By replacing lstat by stat, the problem is corrected.&nbsp;&nbsp;
<br>To avoid infinite loop, we added a walking through depth limit to 2 (see udevstart.c).<br><br>Cheers<br><br> <br></span>