safexcel: Disallow unsupported buffer layouts

MFC after:	3 days
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mark Johnston 2021-01-27 15:31:10 -05:00
parent e1b50e8184
commit 2fccd4f9b6

View File

@ -2272,6 +2272,9 @@ safexcel_probe_cipher(const struct crypto_session_params *csp)
static int
safexcel_probesession(device_t dev, const struct crypto_session_params *csp)
{
if (csp->csp_flags != 0)
return (EINVAL);
switch (csp->csp_mode) {
case CSP_MODE_CIPHER:
if (!safexcel_probe_cipher(csp))