diff mbox series

[net-next,1/2] net: macvtap: fix template string argument of device_create() call

Message ID 20211016054136.13286-1-sakiwit@gmail.com (mailing list archive)
State Accepted
Commit 1c5b5b3f0eab5eb8d954816dbb3124d2411fd800
Delegated to: Netdev Maintainers
Headers show
Series [net-next,1/2] net: macvtap: fix template string argument of device_create() call | expand

Checks

Context Check Description
netdev/cover_letter success Single patches do not need cover letters
netdev/fixes_present success Fixes tag not required for -next series
netdev/patch_count success Link
netdev/tree_selection success Clearly marked for net-next
netdev/subject_prefix success Link
netdev/cc_maintainers success CCed 3 of 3 maintainers
netdev/source_inline success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/module_param success Was 0 now: 0
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/verify_fixes success No Fixes tag
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/header_inline success No static functions without inline keyword in header files

Commit Message

Jεan Sacren Oct. 16, 2021, 5:41 a.m. UTC
From: Jean Sacren <sakiwit@gmail.com>

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>
---
 drivers/net/macvtap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

patchwork-bot+netdevbpf@kernel.org Oct. 16, 2021, 8 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Fri, 15 Oct 2021 23:41:34 -0600 you wrote:
> From: Jean Sacren <sakiwit@gmail.com>
> 
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next,1/2] net: macvtap: fix template string argument of device_create() call
    https://git.kernel.org/netdev/net-next/c/1c5b5b3f0eab
  - [net-next,2/2] net: ipvtap: fix template string argument of device_create() call
    https://git.kernel.org/netdev/net-next/c/a07a296bba9d

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
diff mbox series

Patch

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));