From: Lepton Wu <ytht.net@gmail.com>
To: netdev@vger.kernel.org
Cc: stefanha@redhat.com, decui@microsoft.com, jhansen@vmware.com,
Lepton Wu <ytht.net@gmail.com>
Subject: [PATCH v2] Fix ERROR:do not initialise statics to 0 in af_vsock.c
Date: Thu, 10 Jan 2019 10:37:13 -0800 [thread overview]
Message-ID: <20190110183713.245630-1-ytht.net@gmail.com> (raw)
In-Reply-To: <20190110095914.GB19025@stefanha-x1.localdomain>
Found by scripts/checkpatch.pl
Signed-off-by: Lepton Wu <ytht.net@gmail.com>
---
net/vmw_vsock/af_vsock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
index 43a1dec08825..a60df252d3cc 100644
--- a/net/vmw_vsock/af_vsock.c
+++ b/net/vmw_vsock/af_vsock.c
@@ -505,7 +505,7 @@ static void vsock_pending_work(struct work_struct *work)
static int __vsock_bind_stream(struct vsock_sock *vsk,
struct sockaddr_vm *addr)
{
- static u32 port = 0;
+ static u32 port;
struct sockaddr_vm new_addr;
if (!port)
--
2.20.1.97.g81188d93c3-goog
next prev parent reply other threads:[~2019-01-10 18:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-09 23:45 [PATCH] Fix ERROR:do not initialise statics to 0 in af_vsock.c Lepton Wu
2019-01-10 9:59 ` Stefan Hajnoczi
2019-01-10 18:37 ` Lepton Wu [this message]
2019-01-16 4:39 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190110183713.245630-1-ytht.net@gmail.com \
--to=ytht.net@gmail.com \
--cc=decui@microsoft.com \
--cc=jhansen@vmware.com \
--cc=netdev@vger.kernel.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.