diff options
author | Jean Sacren <sakiwit@gmail.com> | 2021-10-15 23:41:34 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-16 08:51:21 +0100 |
commit | 1c5b5b3f0eab5eb8d954816dbb3124d2411fd800 (patch) | |
tree | 04c0427aedb74364a848071d08df14a80061665a /drivers/net/macvtap.c | |
parent | 93eb2b77212e93f8d1681f9abe438028e652fd00 (diff) |
net: macvtap: 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/macvtap.c')
-rw-r--r-- | drivers/net/macvtap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index 694e2f5dbbe5..6b12902a803f 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -169,7 +169,7 @@ static int macvtap_device_event(struct notifier_block *unused, devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); classdev = device_create(&macvtap_class, &dev->dev, devt, - dev, tap_name); + dev, "%s", tap_name); if (IS_ERR(classdev)) { tap_free_minor(macvtap_major, &vlantap->tap); return notifier_from_errno(PTR_ERR(classdev)); |