lib/sbitmap: allocate sb->map via kvzalloc_node
[linux-2.6-microblaze.git] / include / linux / sbitmap.h
index dffeb82..8f5a86e 100644 (file)
@@ -174,7 +174,7 @@ static inline unsigned int __map_depth(const struct sbitmap *sb, int index)
 static inline void sbitmap_free(struct sbitmap *sb)
 {
        free_percpu(sb->alloc_hint);
-       kfree(sb->map);
+       kvfree(sb->map);
        sb->map = NULL;
 }