6pack: Fix use after free in sixpack_close().
authorDavid Miller <davem@davemloft.net>
Thu, 17 Dec 2015 21:05:32 +0000 (16:05 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Dec 2015 20:57:33 +0000 (15:57 -0500)
commitacf673a3187edf72068ee2f92f4dc47d66baed47
treee85436a3323c793d89ab76e0b1c96e8841fa9776
parent6e3cd5fa65318f35ec9c9f61bc5cdb55d4783cb9
6pack: Fix use after free in sixpack_close().

Need to do the unregister_device() after all references to the driver
private have been done.

Also we need to use del_timer_sync() for the timers so that we don't
have any asynchronous references after the unregister.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hamradio/6pack.c