]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Linux : Don't leak GLOCK when writing CellServDB
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 5 Mar 2010 15:40:55 +0000 (15:40 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 5 Mar 2010 16:00:02 +0000 (08:00 -0800)
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 <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/LINUX/osi_proc.c

index 59b2ee924197775662ab5d9346ad8f7b83c75d58..53478bdecd13ba258c5ff65ef0c18c9f25ec842a 100644 (file)
@@ -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;