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) ...@@ -1132,12 +1132,8 @@ static void __exit sa1100_irda_exit(void)
release_mem_region(__PREG(Ser2HSCR0), 0x1c); release_mem_region(__PREG(Ser2HSCR0), 0x1c);
release_mem_region(__PREG(Ser2UTCR0), 0x24); release_mem_region(__PREG(Ser2UTCR0), 0x24);
/* if(dev)
* We now know that the netdevice is no longer in use, and all free_netdev(dev);
* 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
*/
} }
static int __init sa1100ir_setup(char *line) 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