Commit 03741d95 authored by Tomas Henzl's avatar Tomas Henzl Committed by James Bottomley
Browse files

hpsa: fix memory leak in kdump hard reset



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>
parent 2b08b3e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5840,7 +5840,7 @@ static int hpsa_kdump_hard_reset_controller(struct pci_dev *pdev)
	}
	rc = write_driver_ver_to_cfgtable(cfgtable);
	if (rc)
		goto unmap_vaddr;
		goto unmap_cfgtable;

	/* If reset via doorbell register is supported, use that.
	 * There are two such methods.  Favor the newest method.