]> 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)
commit554c56099499c2d45237b0abe8e54d977dfbe8e0
tree04c0427aedb74364a848071d08df14a80061665a
parentce25becb63e55482f2c8d264bb62cf6b1d47d949
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