/* * File: pep_gprs.h * * GPRS over Phonet pipe end point socket * * Copyright (C) 2008 Nokia Corporation. * * Author: RĂ©mi Denis-Courmont * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA */ #ifndef NET_PHONET_GPRS_H #define NET_PHONET_GPRS_H struct sock; struct sk_buff; int pep_writeable(struct sock *sk); int pep_write(struct sock *sk, struct sk_buff *skb); struct sk_buff *pep_read(struct sock *sk); int gprs_attach(struct sock *sk); void gprs_detach(struct sock *sk); #endif cleanup net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/include/dt-bindings/i2c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2017-01-09 17:15:18 -0500
committerJ. Bruce Fields <bfields@redhat.com>2017-01-12 15:56:14 -0500
commit78794d1890708cf94e3961261e52dcec2cc34722 (patch)
treeade1523bd1d3ebd2dc14e46676d496a2df16f116 /include/dt-bindings/i2c
parentdcd208697707b12adeaa45643bab239c5e90ef9b (diff)
svcrpc: don't leak contexts on PROC_DESTROY
Context expiry times are in units of seconds since boot, not unix time. The use of get_seconds() here therefore sets the expiry time decades in the future. This prevents timely freeing of contexts destroyed by client RPC_GSS_PROC_DESTROY requests. We'd still free them eventually (when the module is unloaded or the container shut down), but a lot of contexts could pile up before then. Cc: stable@vger.kernel.org Fixes: c5b29f885afe "sunrpc: use seconds since boot in expiry cache" Reported-by: Andy Adamson <andros@netapp.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/dt-bindings/i2c')