]> git.ipfire.org Git - thirdparty/grub.git/commit
fs/zfs/zfs: Update dangling dn_new pointer in dnode_get_path()
authorJagannathan Raman <jag.raman@oracle.com>
Mon, 17 Oct 2022 14:04:38 +0000 (14:04 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 27 Oct 2022 14:50:06 +0000 (16:50 +0200)
commit306be1f813a47ef9c198a677b7353430522c5d70
tree06b1e36738dee824b2f25bf7d249bfa68cbbfc19
parent59022ae263c27700acfba5cd01a8b6416e2a29b5
fs/zfs/zfs: Update dangling dn_new pointer in dnode_get_path()

The dnode_get_path() traverses dnode structures to locate the dnode leaf
of a given path. When the leaf is a symlink to another path, it restarts
the traversal either from root or from a different path. In such cases,
dn_new must be re-initialized

Passes "make check".

Fixes: CID 86750
Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Ross Philipson <ross.philipson@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/fs/zfs/zfs.c