diff options
Diffstat (limited to 'net/core/dev.c')
| -rw-r--r-- | net/core/dev.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 1461c2d9dec8..2771fd22dc6a 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -681,11 +681,11 @@ int dev_fill_forward_path(const struct net_device *dev, const u8 *daddr,  	const struct net_device *last_dev;  	struct net_device_path_ctx ctx = {  		.dev	= dev, -		.daddr	= daddr,  	};  	struct net_device_path *path;  	int ret = 0; +	memcpy(ctx.daddr, daddr, sizeof(ctx.daddr));  	stack->num_paths = 0;  	while (ctx.dev && ctx.dev->netdev_ops->ndo_fill_forward_path) {  		last_dev = ctx.dev;  |