Skip to content

Commit 405fd70

Browse files
committed
ipconfig: Only bootp paths should reference ic_dev_xid.
It is only tested, and declared, in the bootp code. So, in ic_dynamic() guard it's setting with IPCONFIG_BOOTP. Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5edbf7d commit 405fd70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/ipconfig.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,10 +1217,10 @@ static int __init ic_dynamic(void)
12171217
get_random_bytes(&timeout, sizeof(timeout));
12181218
timeout = CONF_BASE_TIMEOUT + (timeout % (unsigned int) CONF_TIMEOUT_RANDOM);
12191219
for (;;) {
1220+
#ifdef IPCONFIG_BOOTP
12201221
/* Track the device we are configuring */
12211222
ic_dev_xid = d->xid;
12221223

1223-
#ifdef IPCONFIG_BOOTP
12241224
if (do_bootp && (d->able & IC_BOOTP))
12251225
ic_bootp_send_if(d, jiffies - start_jiffies);
12261226
#endif

0 commit comments

Comments
 (0)