Skip to content

Commit c44e783

Browse files
committed
xtensa: ISS: add comment about etherdev freeing
iss_net_configure explicitly frees etherdev in all error return paths except one where register_netdevice fails. In that remaining error return path the etherdev is freed by the iss_net_pdev_release callback triggered by the platform_device_unregister call. Add a comment stating that. Signed-off-by: Max Filippov <[email protected]>
1 parent 06c2afb commit c44e783

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/xtensa/platforms/iss/network.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ static void iss_net_configure(int index, char *init)
540540
rtnl_unlock();
541541
pr_err("%s: error registering net device!\n", dev->name);
542542
platform_device_unregister(&lp->pdev);
543+
/* dev is freed by the iss_net_pdev_release callback */
543544
return;
544545
}
545546
rtnl_unlock();

0 commit comments

Comments
 (0)