Hi, On Fri, Oct 2, 2009 at 3:11 AM, Yan Wang <wy.micheal@xxxxxxxxx> wrote: (...) > } while (strcmp(iterator->mnt_mountpoint->d_name.name, vfs_mount_p->mnt_mountpoint\ > ->d_name.name) != 0 ); On my machine, iterator->mnt_mountpoint is NULL at the very end. Seems like you should check that. But if I remember correctly, there are special macros to traverse a list, e.g. list_for_each(), defined in include/linux/list.h. ~H -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ