[PATCH RESEND] misc: mic: Fix crash when MIC reset is invoked in RESET_FAILED state

2015-12-15 Thread Ashutosh Dixit
This patch fixes the following crash seen when MIC reset is invoked in RESET_FAILED state due to device_del being called a second time on an already deleted device: [] device_del+0x45/0x1d0 [] device_unregister+0x1e/0x60 [] scif_unregister_device+0x12/0x20 [scif_bus] [] cosm_stop+0xaa/0xe0

[PATCH RESEND] misc: mic: Fix crash when MIC reset is invoked in RESET_FAILED state

2015-12-15 Thread Ashutosh Dixit
This patch fixes the following crash seen when MIC reset is invoked in RESET_FAILED state due to device_del being called a second time on an already deleted device: [] device_del+0x45/0x1d0 [] device_unregister+0x1e/0x60 [] scif_unregister_device+0x12/0x20 [scif_bus] [] cosm_stop+0xaa/0xe0