<span>Dear,<br><br>Using mdev, we noticed that some devices were not attached to /dev/ using "mdev -s".<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 1 root root 0 Jan 1 1970 watchdog -> ../../devices/platform/at91sam9x_wdt/watchdog<br><br>Doing so, the function can't walk through symbolic links. By replacing lstat by stat, the problem is corrected.
<br>To avoid infinite loop, we added a walking through depth limit to 2 (see udevstart.c).<br><br>Cheers<br><br> <br></span>