Skip to content
Commit b208d54b authored by Debabrata Banerjee's avatar Debabrata Banerjee Committed by Linus Torvalds
Browse files

procfs: fix error handling of proc_register()



proc_register() error paths are leaking inodes and directory refcounts.

Signed-off-by: default avatarDebabrata Banerjee <dbanerje@akamai.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Acked-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 710585d4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment