projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28e8190
)
tun: Rename a jump label in update_filter()
author
Markus Elfring
<elfring@users.sourceforge.net>
Sat, 20 Aug 2016 07:00:34 +0000
(09:00 +0200)
committer
David S. Miller
<davem@davemloft.net>
Sun, 21 Aug 2016 02:11:33 +0000
(19:11 -0700)
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>
drivers/net/tun.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/tun.c
b/drivers/net/tun.c
index a1aeccbce6d480afca35ef0b939c7d82aa99bcf7..e249428f2d83ec08ff468d4385a379ad2309c74b 100644
(file)
--- 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;
}