summaryrefslogtreecommitdiff
path: root/fs/ocfs2/cluster/netdebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/cluster/netdebug.c')
-rw-r--r--fs/ocfs2/cluster/netdebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/cluster/netdebug.c b/fs/ocfs2/cluster/netdebug.c
index bc27301eab6d..f7ab66e70799 100644
--- a/fs/ocfs2/cluster/netdebug.c
+++ b/fs/ocfs2/cluster/netdebug.c
@@ -380,7 +380,7 @@ static int sc_common_open(struct file *file, int ctxt)
struct o2net_sock_debug *sd;
struct o2net_sock_container *dummy_sc;
- dummy_sc = kzalloc(sizeof(*dummy_sc), GFP_KERNEL);
+ dummy_sc = kzalloc_obj(*dummy_sc);
if (!dummy_sc)
return -ENOMEM;