]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r314374: Add safety check against too long CDB.
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 7 Mar 2017 05:57:18 +0000 (05:57 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 7 Mar 2017 05:57:18 +0000 (05:57 +0000)
commit0c38b391b58fdf5285d005d9363f32e5d50c343c
tree365c9ab2f71ef38eb100df203571c6fe90db22e6
parent113549789d26a8923fad524eee6be802a815009a
MFC r314374: 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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@314836 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/firewire/sbp.c