diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2015-01-06 12:59:37 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2015-01-06 12:59:37 +0000 |
| commit | 2a8c860fe3f3bcfc6ba9206f34d067d998d89c7e (patch) | |
| tree | 8da641e0473d723ab1cc2e5a5772cb1eed6e4d6f /sys/dev/safe | |
| parent | fe657d68f54b7ef837aa6373bb9644911a074c8d (diff) | |
Notes
Diffstat (limited to 'sys/dev/safe')
| -rw-r--r-- | sys/dev/safe/safe.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/safe/safe.c b/sys/dev/safe/safe.c index cfd00b6705342..9b91ed01c1434 100644 --- a/sys/dev/safe/safe.c +++ b/sys/dev/safe/safe.c @@ -1328,8 +1328,7 @@ safe_process(device_t dev, struct cryptop *crp, int hint) goto errout; } if (totlen >= MINCLSIZE) { - MCLGET(m, M_NOWAIT); - if ((m->m_flags & M_EXT) == 0) { + if (!(MCLGET(m, M_NOWAIT))) { m_free(m); safestats.st_nomcl++; err = sc->sc_nqchip ? @@ -1355,8 +1354,7 @@ safe_process(device_t dev, struct cryptop *crp, int hint) len = MLEN; } if (top && totlen >= MINCLSIZE) { - MCLGET(m, M_NOWAIT); - if ((m->m_flags & M_EXT) == 0) { + if (!(MCLGET(m, M_NOWAIT))) { *mp = m; m_freem(top); safestats.st_nomcl++; |
