mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
safexcel: Disallow unsupported buffer layouts
MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
e1b50e8184
commit
2fccd4f9b6
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue