device.c (889b7da23abf92faf34491df95733bda63639e32) | device.c (4d8b9319282ae84f5a17b28d8b5b5d1e7e537312) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Management Component Transport Protocol (MCTP) - device implementation. 4 * 5 * Copyright (c) 2021 Code Construct 6 * Copyright (c) 2021 Google 7 */ 8 --- 328 unchanged lines hidden (view full) --- 337 mdev = mctp_dev_get_rtnl(dev); 338 339 if (!mdev) 340 return; 341 342 RCU_INIT_POINTER(mdev->dev->mctp_ptr, NULL); 343 344 mctp_route_remove_dev(mdev); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Management Component Transport Protocol (MCTP) - device implementation. 4 * 5 * Copyright (c) 2021 Code Construct 6 * Copyright (c) 2021 Google 7 */ 8 --- 328 unchanged lines hidden (view full) --- 337 mdev = mctp_dev_get_rtnl(dev); 338 339 if (!mdev) 340 return; 341 342 RCU_INIT_POINTER(mdev->dev->mctp_ptr, NULL); 343 344 mctp_route_remove_dev(mdev); |
345 mctp_neigh_remove_dev(mdev); |
|
345 kfree(mdev->addrs); 346 347 mctp_dev_destroy(mdev); 348} 349 350static int mctp_register(struct net_device *dev) 351{ 352 struct mctp_dev *mdev; --- 70 unchanged lines hidden --- | 346 kfree(mdev->addrs); 347 348 mctp_dev_destroy(mdev); 349} 350 351static int mctp_register(struct net_device *dev) 352{ 353 struct mctp_dev *mdev; --- 70 unchanged lines hidden --- |