Page MenuHomeFreeBSD

Correctly set error in rt_mpath_unlink
ClosedPublic

Authored by mhorne on Jul 28 2020, 9:10 PM.

Details

Summary

It is possible for rn_delete() to return NULL in certain cases. If this
happens then rt_mpath_unlink() should set *perror to ESRCH, as it does
in all other cases where it fails to find a radix_node.

Test Plan

buildkernel with RADIX_MPATH added to the kernel configuration

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.