Skip to content

Commit

Permalink
SUNRPC: fix variable type
Browse files Browse the repository at this point in the history
Due to incorrect len type bc_send_request returned always zero.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2046107

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
  • Loading branch information
Andrzej Hajda authored and Trond Myklebust committed Nov 3, 2015
1 parent ac3c860 commit 7fc5613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sunrpc/xprtsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -2570,7 +2570,7 @@ static int bc_send_request(struct rpc_task *task)
{
struct rpc_rqst *req = task->tk_rqstp;
struct svc_xprt *xprt;
u32 len;
int len;

dprintk("sending request with xid: %08x\n", ntohl(req->rq_xid));
/*
Expand Down

0 comments on commit 7fc5613

Please sign in to comment.