net: macvtap: fix template string argument of device_create() call
authorJean Sacren <sakiwit@gmail.com>
Sat, 16 Oct 2021 05:41:34 +0000 (23:41 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Oct 2021 07:51:21 +0000 (08:51 +0100)
commit1c5b5b3f0eab5eb8d954816dbb3124d2411fd800
tree04c0427aedb74364a848071d08df14a80061665a
parent93eb2b77212e93f8d1681f9abe438028e652fd00
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>
drivers/net/macvtap.c