atmodem: remove pending idle callbacks at removal
authorMingli Wu <mingli@southpole.se>
Tue, 4 Dec 2012 15:33:47 +0000 (16:33 +0100)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 5 Dec 2012 05:48:14 +0000 (23:48 -0600)
commit911eeb6565bf3cdf04322f3a2c040431b19808bb
tree6f231416d95dcbee971af2125f69594ecae19c8f
parent25e7ecd3c783d03e833938c617e4507bf6e9394a
atmodem: remove pending idle callbacks at removal

If device probe and removal happen in short succession, it's possible
that the idle handler registered in the probe function doesn't run before
the device is removed.  In this case, the idle handler needs to be
unregistered so that it does not run and try to access the data that's
destroyed during the removal.
drivers/atmodem/call-barring.c
drivers/atmodem/call-forwarding.c
drivers/atmodem/call-settings.c
drivers/atmodem/sim-auth.c
drivers/atmodem/sim.c
drivers/atmodem/stk.c