summaryrefslogtreecommitdiffstats
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2016-08-20 09:00:34 +0200
committerDavid S. Miller <davem@davemloft.net>2016-08-21 04:11:33 +0200
commit3b8d2a693dfa9038e8013506355b5e0c2e2edd9c (patch)
tree9a495d931e0bacbb12df9c5b153bbd05e551c758 /drivers/net/tun.c
parenttun: Use memdup_user() rather than duplicating its implementation (diff)
downloadlinux-3b8d2a693dfa9038e8013506355b5e0c2e2edd9c.tar.xz
linux-3b8d2a693dfa9038e8013506355b5e0c2e2edd9c.zip
tun: Rename a jump label in update_filter()
Adjust a jump target according to the Linux coding style convention. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r--drivers/net/tun.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index a1aeccbce6d4..e249428f2d83 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -753,7 +753,7 @@ static int update_filter(struct tap_filter *filter, void __user *arg)
for (; n < uf.count; n++) {
if (!is_multicast_ether_addr(addr[n].u)) {
err = 0; /* no filter */
- goto done;
+ goto free_addr;
}
addr_hash_set(filter->mask, addr[n].u);
}
@@ -769,8 +769,7 @@ static int update_filter(struct tap_filter *filter, void __user *arg)
/* Return the number of exact filters */
err = nexact;
-
-done:
+free_addr:
kfree(addr);
return err;
}