mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
[PATCH] Ban register_filesystem(NULL);
Everyone passes valid pointer there. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
d826380b30
commit
6ea36ddbd1
@@ -69,8 +69,6 @@ int register_filesystem(struct file_system_type * fs)
|
|||||||
int res = 0;
|
int res = 0;
|
||||||
struct file_system_type ** p;
|
struct file_system_type ** p;
|
||||||
|
|
||||||
if (!fs)
|
|
||||||
return -EINVAL;
|
|
||||||
if (fs->next)
|
if (fs->next)
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
INIT_LIST_HEAD(&fs->fs_supers);
|
INIT_LIST_HEAD(&fs->fs_supers);
|
||||||
|
Reference in New Issue
Block a user