]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mpt(4): Remove incorrect S/G segments limits.
authorAlexander Motin <mav@FreeBSD.org>
Sat, 17 Apr 2021 14:41:35 +0000 (10:41 -0400)
committerAlexander Motin <mav@FreeBSD.org>
Sat, 17 Apr 2021 14:49:44 +0000 (10:49 -0400)
commit0f29396e493bd87ffa6a63fcb602b12e79d21a1e
tree4d1c32c1e75de95c50fb9880d240b123aa345f9e
parentb51f459a2098622c31ed54f5c1bf0e03efce403b
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
sys/dev/mpt/mpt_cam.c