mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
sfxge(4): fix check in NVRAM validate
Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18092
This commit is contained in:
parent
558eb6e7f1
commit
6a869fec96
1 changed files with 5 additions and 4 deletions
|
|
@ -473,10 +473,11 @@ efx_nvram_validate(
|
|||
if ((rc = envop->envo_type_to_partn(enp, type, &partn)) != 0)
|
||||
goto fail1;
|
||||
|
||||
if (envop->envo_type_to_partn != NULL &&
|
||||
((rc = envop->envo_buffer_validate(enp, partn,
|
||||
partn_data, partn_size)) != 0))
|
||||
goto fail2;
|
||||
if (envop->envo_buffer_validate != NULL) {
|
||||
if ((rc = envop->envo_buffer_validate(enp, partn,
|
||||
partn_data, partn_size)) != 0)
|
||||
goto fail2;
|
||||
}
|
||||
|
||||
return (0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue