Skip to content

Commit

Permalink
tun: Rename a jump label in update_filter()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markus Elfring authored and David S. Miller committed Aug 21, 2016
1 parent 28e8190 commit 3b8d2a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 3b8d2a6

Please sign in to comment.