HomeFreeBSD

mpr, mps: Fix an off-by-one bug in the BTDH_MAPPING ioctl

Description

mpr, mps: Fix an off-by-one bug in the BTDH_MAPPING ioctl

The device mapping table contains sc->max_devices entries, so only
indices in [0, sc->max_devices) are valid.

Differential Revision: https://reviews.freebsd.org/D27964

(cherry picked from commit adc0dcc352bb9f5a67a054d95c6959ea5aa26d91)

Details

Provenance
markjAuthored on Jan 8 2021, 6:32 PM
Differential Revision
D27964: mpr, mps: Fix an off-by-one bug in the BTDH_MAPPING ioctl
Parents
rGe222e1ff8909: safexcel: Fix a race around unblocking of crypto ops
Branches
Unknown
Tags
Unknown