diff options
author | Anish Bhatt <anish@chelsio.com> | 2015-02-19 02:29:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-21 01:25:52 +0300 |
commit | 5a8eeec468f229558322926f28c61bb0769793e9 (patch) | |
tree | 139ec1c0f2383dd6aa4a07366ede5bd85463e324 /drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h | |
parent | 65e9256c4ec569ed62bb89023daab7b72368b89f (diff) | |
download | linux-5a8eeec468f229558322926f28c61bb0769793e9.tar.xz |
cxgb4: Fix incorrect 'c' suffix to %pI4, use %pISc instead
Issue caught by 0-day kernel test infrastructure. Code changed to use sockaddr
members so that %pISc can be used instead.
Fixes: b5a02f503caa ('cxgb4 : Update ipv6 address handling api')
Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h b/drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h index 2eaba0161cf8..35eb43c6bcbb 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h +++ b/drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h @@ -14,8 +14,10 @@ struct clip_entry { spinlock_t lock; /* Hold while modifying clip reference */ atomic_t refcnt; struct list_head list; - u32 addr[4]; - int addr_len; + union { + struct sockaddr_in addr; + struct sockaddr_in6 addr6; + }; }; struct clip_tbl { |