Commit fcafa22d authored by Tomas Henzl's avatar Tomas Henzl Committed by Zefan Li

hpsa: fix memory leak in kdump hard reset

commit 03741d95 upstream.

There is a potential memory leak in hpsa_kdump_hard_reset_controller.
Reviewed-by: default avatarDon Brace <don.brace@pmcs.com>
Reviewed-by: default avatarScott Teel <scott.teel@pmcs.com>
Signed-off-by: default avatarTomas Henzl <thenzl@redhat.com>
Signed-off-by: default avatarDon Brace <don.brace@pmcs.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Cc: Vinson Lee <vlee@twopensource.com>
Signed-off-by: default avatarZefan Li <lizefan@huawei.com>
parent 52f70606
...@@ -3530,7 +3530,7 @@ static __devinit int hpsa_kdump_hard_reset_controller(struct pci_dev *pdev) ...@@ -3530,7 +3530,7 @@ static __devinit int hpsa_kdump_hard_reset_controller(struct pci_dev *pdev)
} }
rc = write_driver_ver_to_cfgtable(cfgtable); rc = write_driver_ver_to_cfgtable(cfgtable);
if (rc) if (rc)
goto unmap_vaddr; goto unmap_cfgtable;
/* If reset via doorbell register is supported, use that. /* If reset via doorbell register is supported, use that.
* There are two such methods. Favor the newest method. * There are two such methods. Favor the newest method.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment