]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32b161d23df730c0e447831414e303e87122dc36
tree04c0427aedb74364a848071d08df14a80061665a
parent37df03e6a6de38e744341f0f0968bb93490713a7
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