Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86901
b: refs/heads/master
c: 4010237
h: refs/heads/master
i:
  86899: 923b109
v: v3
  • Loading branch information
Kim B. Heino authored and David S. Miller committed Feb 29, 2008
1 parent bed00b9 commit d68a62b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 459eea74104ad85c30e17541c2b30d776445e985
refs/heads/master: 401023710d73aaef1191ab4d6a79d39c51add828
6 changes: 5 additions & 1 deletion trunk/drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,11 @@ static int tun_chr_ioctl(struct inode *inode, struct file *file,
case SIOCSIFHWADDR:
{
/* try to set the actual net device's hw address */
int ret = dev_set_mac_address(tun->dev, &ifr.ifr_hwaddr);
int ret;

rtnl_lock();
ret = dev_set_mac_address(tun->dev, &ifr.ifr_hwaddr);
rtnl_unlock();

if (ret == 0) {
/** Set the character device's hardware address. This is used when
Expand Down

0 comments on commit d68a62b

Please sign in to comment.