HomeFreeBSD

ibcore: Validate port number in query_pkey verb.

Description

ibcore: Validate port number in query_pkey verb.

Before calling the driver's function let's make sure port is valid.

Linux commit:
9af3f5cf9d64a056eca53bc643f6288ad28bbbb5

Reviewed by: kib
Sponsored by: Mellanox Technologies // NVIDIA Networking

(cherry picked from commit 31525faed8b43c579767cf3ac211f41764b2a46c)

Details

Provenance
hselaskyAuthored on Jun 16 2021, 1:01 PM
Parents
rG6ee862127d3d: ibcore: Protect against concurrent access to hardware stats.
Branches
Unknown
Tags
Unknown