ste_conn_driver: Fix crash if no patch file found
If no patch file has been found for the connected chip the device
struct is freed by calling ste_conn_reset(). Then the
ste_conn_register() will try to free the same struct again which will
cause a kernel crash. There is no need to do a reset of the whole
driver when the chip startup has failed, it's enough to call the
cpd_chip_shutdown() instead of ste_conn_reset() and let the
ste_conn_register() free the dev struct.
ST-Ericsson ID: ER264360
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/1750
Reviewed-by: Magnus MALMBORN <magnus.malmborn@stericsson.com>
Reviewed-by: Dariusz SZYMCZAK <dariusz.xd.szymczak@stericsson.com>
Tested-by: Dariusz SZYMCZAK <dariusz.xd.szymczak@stericsson.com>
Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Change-Id: I9dfdefd435d3e7b6f35f0a9a613a4b879f22bd41
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2630
1 file changed