• Alexander Viro's avatar
    [PATCH] au1k leaks, allocation and free_netdev() fixes · 8538bf48
    Alexander Viro authored
    	* fixes leaks on failed init
    	* switches to sane allocation
    	* fixes netdev freeing (kfree -> free_netdev)
    	* fixes the idiocy with ->init() (from registger_netdev()) calling
    unregister_netdevice() in case of failure - before we got anywhere past
    the very beginning of register_netdev().
    
    That's a part of NE* series that failed through the cracks (there were
    pending irda patches, so that had been postponed, irda patches either
    hadn't materialized in two months or hadn't touched that driver at all,
    the latter being more likely).
    
    Please, apply.
    8538bf48
au1k_ir.c 19.5 KB