diff options
author | Hans Wippel <hwippel@linux.ibm.com> | 2019-01-30 18:51:01 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-01 14:45:44 -0800 |
commit | ca8dc1334a71d6081b09e18d55198a27e28fd44b (patch) | |
tree | 4333e1519e160883b6dd9b8cc32ba77b01e4364e /net/smc/smc_pnet.c | |
parent | 14d22d4d61e40623a7c5816728bfe55c322e779a (diff) | |
download | linux-ca8dc1334a71d6081b09e18d55198a27e28fd44b.tar.bz2 |
net/smc: allow 16 byte pnetids in netlink policy
Currently, users can only send pnetids with a maximum length of 15 bytes
over the SMC netlink interface although the maximum pnetid length is 16
bytes. This patch changes the SMC netlink policy to accept 16 byte
pnetids.
Signed-off-by: Hans Wippel <hwippel@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_pnet.c')
-rw-r--r-- | net/smc/smc_pnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_pnet.c b/net/smc/smc_pnet.c index 7cb3e4f07c10..632c3109dee5 100644 --- a/net/smc/smc_pnet.c +++ b/net/smc/smc_pnet.c @@ -27,7 +27,7 @@ static struct nla_policy smc_pnet_policy[SMC_PNETID_MAX + 1] = { [SMC_PNETID_NAME] = { .type = NLA_NUL_STRING, - .len = SMC_MAX_PNETID_LEN - 1 + .len = SMC_MAX_PNETID_LEN }, [SMC_PNETID_ETHNAME] = { .type = NLA_NUL_STRING, |