Commit 3597323
slub: Correct the error code when slab_kset is NULL
The -ENOSYS is inproper when kset_create_and_add call returns a NULL
pointer, the failure more likely is because lacking memory, hence
returning -ENOMEM is better.
Signed-off-by: Xiongwei Song <xiongwei.song@windriver.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>1 parent 444f20c commit 3597323
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6224 | 6224 | | |
6225 | 6225 | | |
6226 | 6226 | | |
6227 | | - | |
| 6227 | + | |
6228 | 6228 | | |
6229 | 6229 | | |
6230 | 6230 | | |
| |||
0 commit comments