Skip to contentSkip to conversation

fs/ocfs2/stack_user.c - Fixing Compiler warning.

PATCH New askb 1 participant 1 message Nov 4, 2009

Subsystems (2)
lore
Share & tools
lore

askb

author
#0 lore raw

PATCH 1/1 fs/ocfs2/stack_user.c - Fixing Compiler warning.

Found the following compile warning on linux-next:

fs/ocfs2/stack_user.c: In function ‘user_cluster_connect’:
fs/ocfs2/stack_user.c:817: warning: ‘control’ may be used uninitialized in this function

fix for the above warning:

fs/ocfs2/stack_user.c +0 -0
index ff4c798..858ef6f 100644
@@ -814,7 +814,7 @@ static int fs_protocol_compare(struct

ocfs2_protocol_version *existing,
static int user_cluster_connect(struct ocfs2_cluster_connection *conn) {
dlm_lockspace_t *fsdlm;
- struct ocfs2_live_connection *control;
+ struct ocfs2_live_connection *control = NULL;
int rc = 0;

BUG_ON(conn == NULL);

Thanks