aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ipvlan/ipvtap.c
diff options
context:
space:
mode:
authorJean Sacren <sakiwit@gmail.com>2021-10-15 23:41:35 -0600
committerDavid S. Miller <davem@davemloft.net>2021-10-16 08:51:22 +0100
commita07a296bba9ded457b853a3f11f3a23b1e5978d1 (patch)
tree9af3a54de468ef892cf3bd837b2dfac738609fd6 /drivers/net/ipvlan/ipvtap.c
parentnet: macvtap: fix template string argument of device_create() call (diff)
downloadlinux-dev-a07a296bba9ded457b853a3f11f3a23b1e5978d1.tar.xz
linux-dev-a07a296bba9ded457b853a3f11f3a23b1e5978d1.zip
net: ipvtap: fix template string argument of device_create() call
The last argument of device_create() call should be a template string. The tap_name variable should be the argument to the string, but not the argument of the call itself. We should add the template string and turn tap_name into its argument. Signed-off-by: Jean Sacren <sakiwit@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipvlan/ipvtap.c')
-rw-r--r--drivers/net/ipvlan/ipvtap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ipvlan/ipvtap.c b/drivers/net/ipvlan/ipvtap.c
index 1cedb634f4f7..ef02f2cf5ce1 100644
--- a/drivers/net/ipvlan/ipvtap.c
+++ b/drivers/net/ipvlan/ipvtap.c
@@ -162,7 +162,7 @@ static int ipvtap_device_event(struct notifier_block *unused,
devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor);
classdev = device_create(&ipvtap_class, &dev->dev, devt,
- dev, tap_name);
+ dev, "%s", tap_name);
if (IS_ERR(classdev)) {
tap_free_minor(ipvtap_major, &vlantap->tap);
return notifier_from_errno(PTR_ERR(classdev));