HomeFreeBSD

cam: fix integer overflow during inquiry

Description

cam: fix integer overflow during inquiry

From my understanding this could happen with iSCSI LUNs with
unusually long names. The bug would make CAM fail to retrieve
the full inquiry data. Instead of bumping the size of the local
variable, just use a macro.

Reviewed By: imp, mav
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
X-NetApp-PR: #50
Differential Revision: https://reviews.freebsd.org/D29991

Details

Provenance
traszAuthored on May 3 2021, 1:46 PM
Reviewer
imp
Differential Revision
D29991: cam: fix integer overflow during inquiry
Parents
rG8f1562430fbb: Add Apollo Lake SIO/LPSS UARTs PCI IDs
Branches
Unknown
Tags
Unknown