From a0e65de71527477b100afe1e9ab2667d70f94d9e Mon Sep 17 00:00:00 2001 From: Jakub Kicinski Date: Mon, 17 Oct 2016 18:02:22 +0100 Subject: [PATCH] net: report right mtu value in error message Check is for max_mtu but message reports min_mtu. Signed-off-by: Jakub Kicinski Signed-off-by: David S. Miller --- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/dev.c b/net/core/dev.c index 6498cc2ba8f6..352e98129601 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -6372,7 +6372,7 @@ int dev_set_mtu(struct net_device *dev, int new_mtu) if (dev->max_mtu > 0 && new_mtu > dev->max_mtu) { net_err_ratelimited("%s: Invalid MTU %d requested, hw max %d\n", - dev->name, new_mtu, dev->min_mtu); + dev->name, new_mtu, dev->max_mtu); return -EINVAL; } -- GitLab