]> git.ipfire.org Git - thirdparty/grub.git/commit
fs/nilfs2: Properly bail on errors in grub_nilfs2_btree_node_lookup()
authorDaniel Axtens <dja@axtens.net>
Mon, 18 Jan 2021 06:06:19 +0000 (17:06 +1100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:18 +0000 (15:54 +0100)
commitca5d9ac206043b1fb4cb06259272fb1c5946bb6d
tree9621da2ba1f5d43a2ad06b1e80e578ea260a4c67
parent37c0eb05cdcc64c28d31c4ebd300f14d5239d05e
fs/nilfs2: Properly bail on errors in grub_nilfs2_btree_node_lookup()

We just introduced an error return in grub_nilfs2_btree_node_lookup().
Make sure the callers catch it.

At the same time, make sure that grub_nilfs2_btree_node_lookup() always
inits the index pointer passed to it.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/fs/nilfs2.c