Signed-off-by: Jesse Millan --- linux-2.6.12-rc4/fs/devfs/base.c~ 2005-05-25 15:22:47.710055525 -0700 +++ linux-2.6.12-rc4/fs/devfs/base.c 2005-05-25 15:26:15.975096985 -0700 @@ -1127,8 +1127,11 @@ static devfs_handle_t _devfs_make_parent if (dir == NULL) dir = _devfs_get_root_entry(); - if (dir == NULL) + if (dir == NULL) { + /* Function would have returned without initializing 'leaf_pos' */ + *leaf_pos = 0; return NULL; + } devfs_get(dir); /* Search for possible trailing component and ignore it */ for (--namelen; (namelen > 0) && (name[namelen] != '/'); --namelen) ;