diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2014-02-16 12:29:53 -0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-02-16 11:51:17 -0500 |
commit | 8ad116e649b21a42e3cccfb3c1b8d5ea52ba19e5 (patch) | |
tree | c5a69d0a235864821b6ad4d46c9a280b72f95e7f /firmware/ti_5052.fw.ihex | |
parent | 9f9c47f00ce99329b1a82e2ac4f70f0fe3db549c (diff) |
ata: sata_mv: Cleanup only the initialized ports
When an error occurs in the port initialization loop, currently the
driver tries to cleanup all the ports. This results in a NULL pointer
dereference if the ports were only partially initialized.
Fix this by updating only the number of initialized ports (either
with failure or successfully), before jumping to the error path
and looping over that number in the cleanup loop.
Cc: Andrew Lunn <andrew@lunn.ch>
Reported-by: Mikael Pettersson <mikpelinux@gmail.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'firmware/ti_5052.fw.ihex')
0 files changed, 0 insertions, 0 deletions