HomeFreeBSD

mpt(4): Remove incorrect S/G segments limits.

Description

mpt(4): Remove incorrect S/G segments limits.

First, two of those four checks are unreachable.
Second, I don't believe there should be ">=" instead of ">".
Third, bus_dma(9) already returns the same EFBIG if ">".

This fixes false I/O errors in worst S/G cases with maxphys >= 2MB.

MFC after: 1 week

(cherry picked from commit 0f29396e493bd87ffa6a63fcb602b12e79d21a1e)

Details

Provenance
mavAuthored on Apr 17 2021, 2:41 PM
Parents
rG7b61f67f398a: Fix leak in libc NFSv4 ACL flags parsing
Branches
Unknown
Tags
Unknown