safexcel: Disallow unsupported buffer layouts
MFC after: 3 days Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
e1b50e8184
commit
2fccd4f9b6
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user