HomeFreeBSD

vn_copy_file_range(): use local variables for invp/outvp vnodes v_mounts

Description

vn_copy_file_range(): use local variables for invp/outvp vnodes v_mounts

This avoids possible NULL dereference when checking mnt_vfc names.

Reviewed by: jah, rmacklem, Olivier Certner <olce.freebsd@certner.fr>
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D42554

Details

Provenance
kibAuthored on Nov 12 2023, 6:29 PM
Reviewer
jah
Differential Revision
D42554: vn_copy_file_range(): busy both in and out mp around call to VOP_COPY_FILE_RANGE()
Parents
rG103ba509e72e: unbound: Vendor import 1.19.0
Branches
Unknown
Tags
Unknown