Add safety check against too long CDB.
authormav <mav@FreeBSD.org>
Tue, 28 Feb 2017 05:17:50 +0000 (05:17 +0000)
committermav <mav@FreeBSD.org>
Tue, 28 Feb 2017 05:17:50 +0000 (05:17 +0000)
commitbf6e9d3cdfc2dae37f666dec1f768bdfbc7ce4c3
treeb7460560c7acf9badf5f6b1a69a58f5522784384
parent745bcd6fbacaf2197a541b607052a7b399ea8a95
Add safety check against too long CDB.

SBP-2 specification defined maximum CDB length as 12 bytes.  Newer SBP-3
specification allows CDB of any size, but this driver is too old.  Proper
solution would be to look on maximal ORB size supported by the target.

MFC after: 1 week
sys/dev/firewire/sbp.c