Commit 9d4e6ab
committed
slab: simplify init_kmem_cache_nodes() error handling
We don't need to call free_kmem_cache_nodes() immediately when failing
to allocate a kmem_cache_node, because when we return 0,
do_kmem_cache_create() calls __kmem_cache_release() which also performs
free_kmem_cache_nodes().
Reviewed-by: Harry Yoo <[email protected]>
Reviewed-by: Suren Baghdasaryan <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>1 parent 212b0f0 commit 9d4e6ab
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5669 | 5669 | | |
5670 | 5670 | | |
5671 | 5671 | | |
5672 | | - | |
5673 | | - | |
| 5672 | + | |
5674 | 5673 | | |
5675 | | - | |
5676 | 5674 | | |
5677 | 5675 | | |
5678 | 5676 | | |
| |||
0 commit comments