allow link_path_walk() to take ERR_PTR()