diff options
-rw-r--r-- | net/dcb/dcbnl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c index 6b03f561caec..712ca026040a 100644 --- a/net/dcb/dcbnl.c +++ b/net/dcb/dcbnl.c | |||
@@ -1613,6 +1613,10 @@ EXPORT_SYMBOL(dcb_getapp); | |||
1613 | u8 dcb_setapp(struct net_device *dev, struct dcb_app *new) | 1613 | u8 dcb_setapp(struct net_device *dev, struct dcb_app *new) |
1614 | { | 1614 | { |
1615 | struct dcb_app_type *itr; | 1615 | struct dcb_app_type *itr; |
1616 | struct dcb_app_type event; | ||
1617 | |||
1618 | memcpy(&event.name, dev->name, sizeof(event.name)); | ||
1619 | memcpy(&event.app, new, sizeof(event.app)); | ||
1616 | 1620 | ||
1617 | spin_lock(&dcb_lock); | 1621 | spin_lock(&dcb_lock); |
1618 | /* Search for existing match and replace */ | 1622 | /* Search for existing match and replace */ |
@@ -1644,7 +1648,7 @@ u8 dcb_setapp(struct net_device *dev, struct dcb_app *new) | |||
1644 | } | 1648 | } |
1645 | out: | 1649 | out: |
1646 | spin_unlock(&dcb_lock); | 1650 | spin_unlock(&dcb_lock); |
1647 | call_dcbevent_notifiers(DCB_APP_EVENT, new); | 1651 | call_dcbevent_notifiers(DCB_APP_EVENT, &event); |
1648 | return 0; | 1652 | return 0; |
1649 | } | 1653 | } |
1650 | EXPORT_SYMBOL(dcb_setapp); | 1654 | EXPORT_SYMBOL(dcb_setapp); |