Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85664
b: refs/heads/master
c: 69c3683
h: refs/heads/master
v: v3
  • Loading branch information
Keiichi KII authored and David S. Miller committed Feb 15, 2008
1 parent 2cd5cea commit 64362b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: b5c15fc004ac83b7ad280acbe0fd4bbed7e2c8d4
refs/heads/master: 69c3683ca7fe066ecba9e8a0424c5abd258a5d58
4 changes: 2 additions & 2 deletions trunk/drivers/net/netconsole.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ static ssize_t show_local_mac(struct netconsole_target *nt, char *buf)
struct net_device *dev = nt->np.dev;

DECLARE_MAC_BUF(mac);
return snprintf(buf, PAGE_SIZE, "%s\n",
print_mac(mac, dev->dev_addr));
return snprintf(buf, PAGE_SIZE, "%s\n", dev ?
print_mac(mac, dev->dev_addr) : "ff:ff:ff:ff:ff:ff");
}

static ssize_t show_remote_mac(struct netconsole_target *nt, char *buf)
Expand Down

0 comments on commit 64362b5

Please sign in to comment.