Commit 8992505e authored by Stephen Hemminger's avatar Stephen Hemminger

[IRDA]: Fix memory leak in sa1100_ir.c

parent 5b131006
......@@ -1132,12 +1132,8 @@ static void __exit sa1100_irda_exit(void)
release_mem_region(__PREG(Ser2HSCR0), 0x1c);
release_mem_region(__PREG(Ser2UTCR0), 0x24);
/*
* We now know that the netdevice is no longer in use, and all
* references to our driver have been removed. The only structure
* which may still be present is the netdevice, which will get
* cleaned up by net/core/dev.c
*/
if(dev)
free_netdev(dev);
}
static int __init sa1100ir_setup(char *line)
......
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