aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/ncsi/internal.h
diff options
context:
space:
mode:
authorKees Cook <kees@kernel.org>2025-05-21 13:46:11 -0700
committerPaolo Abeni <pabeni@redhat.com>2025-05-27 08:25:42 +0200
commitdb586cad6f451504ec2b14ec812e1e92effe40db (patch)
tree87891fa4b95ef1b4b7e698675adaa3ae396c6285 /net/ncsi/internal.h
parentnet: core: Switch netif_set_mac_address() to struct sockaddr_storage (diff)
downloadwireguard-linux-db586cad6f451504ec2b14ec812e1e92effe40db.tar.xz
wireguard-linux-db586cad6f451504ec2b14ec812e1e92effe40db.zip
net/ncsi: Use struct sockaddr_storage for pending_mac
To avoid future casting with coming API type changes, switch struct ncsi_dev_priv::pending_mac to a full struct sockaddr_storage. Acked-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Kees Cook <kees@kernel.org> Link: https://patch.msgid.link/20250521204619.2301870-3-kees@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/ncsi/internal.h')
-rw-r--r--net/ncsi/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ncsi/internal.h b/net/ncsi/internal.h
index 2c260f33b55c..e76c6de0c784 100644
--- a/net/ncsi/internal.h
+++ b/net/ncsi/internal.h
@@ -322,7 +322,7 @@ struct ncsi_dev_priv {
#define NCSI_DEV_RESHUFFLE 4
#define NCSI_DEV_RESET 8 /* Reset state of NC */
unsigned int gma_flag; /* OEM GMA flag */
- struct sockaddr pending_mac; /* MAC address received from GMA */
+ struct sockaddr_storage pending_mac; /* MAC address received from GMA */
spinlock_t lock; /* Protect the NCSI device */
unsigned int package_probe_id;/* Current ID during probe */
unsigned int package_num; /* Number of packages */