mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
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>
This commit is contained in:
parent
444f20c29e
commit
35973232b5
Loading…
Reference in New Issue
Block a user