Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/marvell use PR_NOWAIT instead of 0
details: https://anonhg.NetBSD.org/src/rev/f69312f5ec3d
branches: trunk
changeset: 357418:f69312f5ec3d
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 09 22:22:58 2017 +0000
description:
use PR_NOWAIT instead of 0
diffstat:
sys/dev/marvell/mvxpsec.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8186586a265c -r f69312f5ec3d sys/dev/marvell/mvxpsec.c
--- a/sys/dev/marvell/mvxpsec.c Thu Nov 09 22:21:27 2017 +0000
+++ b/sys/dev/marvell/mvxpsec.c Thu Nov 09 22:22:58 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mvxpsec.c,v 1.1 2015/06/03 04:20:02 hsuenaga Exp $ */
+/* $NetBSD: mvxpsec.c,v 1.2 2017/11/09 22:22:58 christos Exp $ */
/*
* Copyright (c) 2015 Internet Initiative Japan Inc.
* All rights reserved.
@@ -1498,7 +1498,7 @@
{
struct mvxpsec_session *mv_s;
- mv_s = pool_cache_get(sc->sc_session_pool, 0);
+ mv_s = pool_cache_get(sc->sc_session_pool, PR_NOWAIT);
if (mv_s == NULL) {
log(LOG_ERR, "%s: cannot allocate memory\n", __func__);
return NULL;
@@ -1614,7 +1614,7 @@
sc->sc_free_qlen--;
}
else {
- mv_p = pool_cache_get(sc->sc_packet_pool, 0);
+ mv_p = pool_cache_get(sc->sc_packet_pool, PR_NOWAIT);
if (mv_p == NULL) {
log(LOG_ERR, "%s: cannot allocate memory\n",
__func__);
Home |
Main Index |
Thread Index |
Old Index