diff options
| author | Vihas Mak <[email protected]> | 2022-01-23 23:47:35 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-01-25 16:29:24 +0100 |
| commit | 055a2e2ca6d601a21dc95d435d9ea9bf9280921a (patch) | |
| tree | 10a36229b38427c854cb368c66d9e9ac12a466cc /tools/perf/scripts/python/libxed.py | |
| parent | 6cc2d1a6536788f6334217440a2956c7e73f87f6 (diff) | |
staging: r8188eu: handle rtw_init_netdev_name() failure appropriately
rtw_init_netdev_name() calls dev_alloc_name() which allocates the name
for the device as per the given name format.
The name format is specified by the module parameter "ifname".
It returns a negative err code if the format is invalid. Handle this
error appropriately.
Cancel the timers ininitliazed by rtw_init_drv_sw() before calling
rtw_free_drv_sw() and then proceed to free the adapter.
Also, if register_netdev() fails then goto free_drv_sw instead of
goto handle_dualmac.
Reviewed-by: Dan Carpenter <[email protected]>
Signed-off-by: Vihas Mak <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions