Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171513
b: refs/heads/master
c: 41bdecf
h: refs/heads/master
i:
  171511: d1529bb
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Nov 12, 2009
1 parent 93a9e1a commit 8b228a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 08e9897d512fe7a67e46209543b3815b57a36dc7
refs/heads/master: 41bdecf17e6dba92256c65972ec79a482d978be5
4 changes: 4 additions & 0 deletions trunk/net/decnet/dn_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,13 +828,17 @@ static int dn_dev_get_first(struct net_device *dev, __le16 *addr)
struct dn_dev *dn_db = (struct dn_dev *)dev->dn_ptr;
struct dn_ifaddr *ifa;
int rv = -ENODEV;

if (dn_db == NULL)
goto out;

rtnl_lock();
ifa = dn_db->ifa_list;
if (ifa != NULL) {
*addr = ifa->ifa_local;
rv = 0;
}
rtnl_unlock();
out:
return rv;
}
Expand Down

0 comments on commit 8b228a9

Please sign in to comment.