File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -224,17 +224,17 @@ int ieee802154_add_iface(struct sk_buff *skb, struct genl_info *info)
224
224
dev_hold (dev );
225
225
226
226
if (info -> attrs [IEEE802154_ATTR_HW_ADDR ]) {
227
- struct sockaddr addr ;
227
+ struct sockaddr_storage addr ;
228
228
229
- addr .sa_family = ARPHRD_IEEE802154 ;
230
- nla_memcpy (& addr .sa_data , info -> attrs [IEEE802154_ATTR_HW_ADDR ],
229
+ addr .ss_family = ARPHRD_IEEE802154 ;
230
+ nla_memcpy (& addr .__data , info -> attrs [IEEE802154_ATTR_HW_ADDR ],
231
231
IEEE802154_ADDR_LEN );
232
232
233
233
/* strangely enough, some callbacks (inetdev_event) from
234
234
* dev_set_mac_address require RTNL_LOCK
235
235
*/
236
236
rtnl_lock ();
237
- rc = dev_set_mac_address (dev , & addr , NULL );
237
+ rc = dev_set_mac_address (dev , ( struct sockaddr * ) & addr , NULL );
238
238
rtnl_unlock ();
239
239
if (rc )
240
240
goto dev_unregister ;
You can’t perform that action at this time.
0 commit comments