Skip to content

Commit

Permalink
ocfs2/net: fix uninitialized ret in o2net_send_message_vec()
Browse files Browse the repository at this point in the history
mmotm/fs/ocfs2/cluster/tcp.c: In function ‘o2net_send_message_vec’:
mmotm/fs/ocfs2/cluster/tcp.c:980:6: warning: ‘ret’ may be used uninitialized in this function

It seems a real bug introduced by commit 9af0b38 (ocfs2/net:
Use wait_event() in o2net_send_message_vec()).

cc: Sunil Mushran <[email protected]>
Signed-off-by: Wu Fengguang <[email protected]>
Signed-off-by: Joel Becker <[email protected]>
  • Loading branch information
Wu Fengguang authored and Joel Becker committed Sep 18, 2010
1 parent 228ac63 commit 50aff04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/cluster/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ static int o2net_tx_can_proceed(struct o2net_node *nn,
int o2net_send_message_vec(u32 msg_type, u32 key, struct kvec *caller_vec,
size_t caller_veclen, u8 target_node, int *status)
{
int ret;
int ret = 0;
struct o2net_msg *msg = NULL;
size_t veclen, caller_bytes = 0;
struct kvec *vec = NULL;
Expand Down

0 comments on commit 50aff04

Please sign in to comment.