summaryrefslogtreecommitdiff
path: root/drivers/s390/net/qeth_l3.h
diff options
context:
space:
mode:
authorJulian Wiedmann <jwi@linux.ibm.com>2019-11-14 13:19:23 +0300
committerDavid S. Miller <davem@davemloft.net>2019-11-15 05:16:51 +0300
commitb80c08ac9414e33ac3b2591146f4f37fdefd3ecb (patch)
tree6b48c7d43a0467a703c373183e664c6ba92f306b /drivers/s390/net/qeth_l3.h
parent8659c189b6f2f0af7ae90867d497178ea45c8251 (diff)
downloadlinux-b80c08ac9414e33ac3b2591146f4f37fdefd3ecb.tar.xz
s390/qeth: replace qeth_l3_get_addr_buffer()
The remaining usage effectively is a kmemdup() of the query object. By not wrapping it, some of the callers can now use GFP_KERNEL for the allocation. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_l3.h')
-rw-r--r--drivers/s390/net/qeth_l3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/net/qeth_l3.h b/drivers/s390/net/qeth_l3.h
index ba913d1ab88d..2421f29021c1 100644
--- a/drivers/s390/net/qeth_l3.h
+++ b/drivers/s390/net/qeth_l3.h
@@ -54,6 +54,7 @@ static inline void qeth_l3_init_ipaddr(struct qeth_ipaddr *addr,
addr->type = type;
addr->proto = proto;
addr->disp_flag = QETH_DISP_ADDR_DO_NOTHING;
+ addr->ref_counter = 1;
}
static inline bool qeth_l3_addr_match_ip(struct qeth_ipaddr *a1,