projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
module.h: simplify MODULE_IMPORT_NS
[linux-2.6-microblaze.git]
/
lib
/
sbitmap.c
diff --git
a/lib/sbitmap.c
b/lib/sbitmap.c
index
2eb3de1
..
ae4fd4d
100644
(file)
--- a/
lib/sbitmap.c
+++ b/
lib/sbitmap.c
@@
-110,7
+110,7
@@
int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
sb->alloc_hint = NULL;
}
sb->alloc_hint = NULL;
}
- sb->map = k
calloc_node(sb->map_nr,
sizeof(*sb->map), flags, node);
+ sb->map = k
vzalloc_node(sb->map_nr *
sizeof(*sb->map), flags, node);
if (!sb->map) {
free_percpu(sb->alloc_hint);
return -ENOMEM;
if (!sb->map) {
free_percpu(sb->alloc_hint);
return -ENOMEM;