]> err.no Git - linux-2.6/blobdiff - fs/nfs/iostat.h
Merge branches 'x86/numa-fixes', 'x86/apic', 'x86/apm', 'x86/bitops', 'x86/build...
[linux-2.6] / fs / nfs / iostat.h
index 7a749515331793c87755502c7f1484d6127803ae..6350ecbde589a8a976867965815d12c5960af307 100644 (file)
@@ -156,7 +156,8 @@ static inline struct nfs_iostats *nfs_alloc_iostats(void)
 
 static inline void nfs_free_iostats(struct nfs_iostats *stats)
 {
-       free_percpu(stats);
+       if (stats != NULL)
+               free_percpu(stats);
 }
 
 #endif