diff options
author | Dariusz Szymczak <dariusz.xd.szymczak@stericsson.com> | 2010-06-18 16:19:49 +0200 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2010-09-02 22:45:47 -0600 |
commit | 6875d3d22c455ce42aa86be66f1c196bb0e570de (patch) | |
tree | d4aa2cdebbde04869afb1ceab5f1f9327955d089 /drivers/ata | |
parent | f8a8a208e6ee66db57bae4566fadb09467ad716d (diff) |
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
Diffstat (limited to 'drivers/ata')
0 files changed, 0 insertions, 0 deletions