summaryrefslogtreecommitdiff
path: root/include/net/mctp.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@codeconstruct.com.au>2021-10-18 06:29:34 +0300
committerDavid S. Miller <davem@davemloft.net>2021-10-18 15:47:09 +0300
commitb416beb25d9317499c823aea1522eefd8d72ea36 (patch)
treec030ece1868997d8456871b61a047cacfa485ea3 /include/net/mctp.h
parentb2cddb44bddc1a9c5949a978bb454bba863264db (diff)
downloadlinux-b416beb25d9317499c823aea1522eefd8d72ea36.tar.xz
mctp: unify sockaddr_mctp types
Use the more precise __kernel_sa_family_t for smctp_family, to match struct sockaddr. Also, use an unsigned int for the network member; negative networks don't make much sense. We're already using unsigned for mctp_dev and mctp_skb_cb, but need to change mctp_sock to suit. Fixes: 60fc63981693 ("mctp: Add sockaddr_mctp to uapi") Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au> Acked-by: Eugene Syromiatnikov <esyr@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/mctp.h')
-rw-r--r--include/net/mctp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/mctp.h b/include/net/mctp.h
index a824d47c3c6d..ffd2c23bd76d 100644
--- a/include/net/mctp.h
+++ b/include/net/mctp.h
@@ -54,7 +54,7 @@ struct mctp_sock {
struct sock sk;
/* bind() params */
- int bind_net;
+ unsigned int bind_net;
mctp_eid_t bind_addr;
__u8 bind_type;