From d12a9b7d04f930df1b57df354efb64b578979b11 Mon Sep 17 00:00:00 2001 From: Feng Gao Date: Tue, 20 Jan 2015 17:16:09 -0800 Subject: [PATCH] Add the lost module_put when security_inode_alloc failed in fsocket_alloc_socket --- kernel/net/fastsocket/fastsocket_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/net/fastsocket/fastsocket_core.c b/kernel/net/fastsocket/fastsocket_core.c index 31f2537e..65d41776 100755 --- a/kernel/net/fastsocket/fastsocket_core.c +++ b/kernel/net/fastsocket/fastsocket_core.c @@ -562,6 +562,7 @@ static struct socket *fsocket_alloc_socket(void) return sock; err2: + module_put(THIS_MODULE); fsocket_free_socket_mem((struct socket_alloc*)sock); err1: return NULL;