PATCH: Arla CVS Current on Linux 2.6.24-2.6.35-rc1

Bo Brantén bosse at acc.umu.se
Sun Jul 11 18:59:31 CEST 2010


fix for leak in a reference count

(this patch is rather small now since tol has checked in all the other 
stuff in CVS)

Bo Branten
-------------- next part --------------
diff -uprN arla-new-cvs.bak/nnpfs/linux/nnpfs_syscalls.c arla-new-cvs/nnpfs/linux/nnpfs_syscalls.c
--- arla-new-cvs.bak/nnpfs/linux/nnpfs_syscalls.c	2010-06-29 23:14:15.000000000 +0200
+++ arla-new-cvs/nnpfs/linux/nnpfs_syscalls.c	2010-07-11 18:45:36.002095539 +0200
@@ -257,7 +257,9 @@ nnpfs_get_pag_group(void)
 #endif
     int i;
 
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,28)
     get_group_info(gi);
+#endif
 
     i = find_pag(gi);
     if (i != NNPFS_PAG_NOTFOUND)
@@ -287,7 +289,9 @@ store_pag(nnpfs_pag_t pagnum)
     int found = 0;
     int i, k;
     
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,28)    
     get_group_info(old_gi);
+#endif
 
     i = find_pag(old_gi);
     if (i != NNPFS_PAG_NOTFOUND)


More information about the Arla-drinkers mailing list