HomeFreeBSD

Properly check if crspace is supported in mlx5core.

Description

Properly check if crspace is supported in mlx5core.

The old code checked for MLX5_CR_SPACE_DOMAIN which is irrelevant here.
However, if dev->vsec_addr would be 0, an access to wrong offset would
happen.

MFC after: 3 days
Submitted by: slavash@
Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Parents
rS331819: Add missing newline character in print in mlx5core.
Branches
Unknown
Tags
Unknown