From: Simon Wilkinson Date: Fri, 5 Mar 2010 15:40:55 +0000 (+0000) Subject: Linux : Don't leak GLOCK when writing CellServDB X-Git-Tag: openafs-devel-1_5_73~97 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=eaccbc942e6f82f4549dc6c4e5d30d27fe4b0c39;p=packages%2Fo%2Fopenafs.git Linux : Don't leak GLOCK when writing CellServDB Don't leak the GLOCK when we're iterating over the CellServDB in response to a read of /proc/fs/openafs/CellServDB Change-Id: I2ed08b9d7f93c7513b49708d009e8acaa478b5f8 Reviewed-on: http://gerrit.openafs.org/1522 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/LINUX/osi_proc.c b/src/afs/LINUX/osi_proc.c index 59b2ee924..53478bdec 100644 --- a/src/afs/LINUX/osi_proc.c +++ b/src/afs/LINUX/osi_proc.c @@ -67,7 +67,7 @@ static void *c_next(struct seq_file *m, void *p, loff_t *pos) tq = QNext(cq); if (tq == &CellLRU) - return NULL; + tq = NULL; AFS_GUNLOCK(); return tq;