Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233420
b: refs/heads/master
c: 7ec7927
h: refs/heads/master
v: v3
  • Loading branch information
John Fastabend authored and David S. Miller committed Feb 13, 2011
1 parent 015080d commit 545f7d5
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: 8a870178c0ad1bae9994c99bd01eb10c9903e616
refs/heads/master: 7ec79270d7de0c8ca602c47cb25a9652ec28f37f
6 changes: 5 additions & 1 deletion trunk/net/dcb/dcbnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1613,6 +1613,10 @@ EXPORT_SYMBOL(dcb_getapp);
u8 dcb_setapp(struct net_device *dev, struct dcb_app *new)
{
struct dcb_app_type *itr;
struct dcb_app_type event;

memcpy(&event.name, dev->name, sizeof(event.name));
memcpy(&event.app, new, sizeof(event.app));

spin_lock(&dcb_lock);
/* Search for existing match and replace */
Expand Down Expand Up @@ -1644,7 +1648,7 @@ u8 dcb_setapp(struct net_device *dev, struct dcb_app *new)
}
out:
spin_unlock(&dcb_lock);
call_dcbevent_notifiers(DCB_APP_EVENT, new);
call_dcbevent_notifiers(DCB_APP_EVENT, &event);
return 0;
}
EXPORT_SYMBOL(dcb_setapp);
Expand Down

0 comments on commit 545f7d5

Please sign in to comment.