Skip to content

Commit a07a296

Browse files
sacrendavem330
authored andcommitted
net: ipvtap: 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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1c5b5b3 commit a07a296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ipvlan/ipvtap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static int ipvtap_device_event(struct notifier_block *unused,
162162

163163
devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor);
164164
classdev = device_create(&ipvtap_class, &dev->dev, devt,
165-
dev, tap_name);
165+
dev, "%s", tap_name);
166166
if (IS_ERR(classdev)) {
167167
tap_free_minor(ipvtap_major, &vlantap->tap);
168168
return notifier_from_errno(PTR_ERR(classdev));

0 commit comments

Comments
 (0)