diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2023-07-03 19:57:25 +0300 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2023-07-11 07:40:58 +0300 |
commit | c44e783e0b4539cb8296da9229202a9f9e6a3c8d (patch) | |
tree | 1075876b777daa33517ac47272badc4d8df155f9 /arch | |
parent | 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff) | |
download | linux-c44e783e0b4539cb8296da9229202a9f9e6a3c8d.tar.xz |
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 <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/xtensa/platforms/iss/network.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/xtensa/platforms/iss/network.c b/arch/xtensa/platforms/iss/network.c index 9ac46ab3a296..7b97e6ab85a4 100644 --- a/arch/xtensa/platforms/iss/network.c +++ b/arch/xtensa/platforms/iss/network.c @@ -540,6 +540,7 @@ static void iss_net_configure(int index, char *init) rtnl_unlock(); pr_err("%s: error registering net device!\n", dev->name); platform_device_unregister(&lp->pdev); + /* dev is freed by the iss_net_pdev_release callback */ return; } rtnl_unlock(); |