Page MenuHomeFreeBSD

Correctly set error in rt_mpath_unlink
ClosedPublic

Authored by mhorne on Jul 28 2020, 9:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 6, 2:23 AM
Unknown Object (File)
Wed, Nov 5, 8:24 PM
Unknown Object (File)
Sun, Nov 2, 1:51 PM
Unknown Object (File)
Wed, Oct 29, 3:14 AM
Unknown Object (File)
Wed, Oct 29, 2:00 AM
Unknown Object (File)
Mon, Oct 20, 6:31 AM
Unknown Object (File)
Oct 8 2025, 10:01 AM
Unknown Object (File)
Oct 7 2025, 5:23 AM

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
Lint Not Applicable
Unit
Tests Not Applicable