aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux/spl
diff options
context:
space:
mode:
authorAlexander Motin <[email protected]>2024-05-10 15:35:20 -0400
committerGitHub <[email protected]>2024-05-10 12:35:20 -0700
commit136c05321140ecefa81a830754c64a7867d033e0 (patch)
tree3c8ef83610bc4d8ce04b15b01e2633bcb6eb9f96 /module/os/linux/spl
parent41ae864b69991f7e13d5171f54a42c721b297233 (diff)
ZAP: Fix leaf references on zap_expand_leaf() errors
Depending on kind of error zap_expand_leaf() may return with or without valid leaf reference held. Make sure it returns NULL if due to error it has no leaf to return. Make its callers to check the returned leaf pointer, and release the leaf if it is not NULL. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes #12366 Closes #16159
Diffstat (limited to 'module/os/linux/spl')
0 files changed, 0 insertions, 0 deletions