Commit c44e783e authored by Max Filippov's avatar Max Filippov

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: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent 06c2afb8
...@@ -540,6 +540,7 @@ static void iss_net_configure(int index, char *init) ...@@ -540,6 +540,7 @@ static void iss_net_configure(int index, char *init)
rtnl_unlock(); rtnl_unlock();
pr_err("%s: error registering net device!\n", dev->name); pr_err("%s: error registering net device!\n", dev->name);
platform_device_unregister(&lp->pdev); platform_device_unregister(&lp->pdev);
/* dev is freed by the iss_net_pdev_release callback */
return; return;
} }
rtnl_unlock(); rtnl_unlock();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment