]> 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)
committerMark Johnston <markj@FreeBSD.org>
Wed, 26 May 2021 19:29:54 +0000 (15:29 -0400)
commita8a91efa74e09f35ecde161f6bb18f10e28efddf
treefef5c701f25b23f4d190eb7c993d22c6434fc8b2
parentea31abc261ffc01b6ff5671bffb15cf910a07f4b
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.

Approved by: so
Security: EN-21:13.mpt
MFC after: 1 week

(cherry picked from commit 0f29396e493bd87ffa6a63fcb602b12e79d21a1e)
(cherry picked from commit f0077b4c1dcfa7eda6efadf197e8423fe002ac5d)
sys/dev/mpt/mpt_cam.c