summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.h
diff options
context:
space:
mode:
authorRobert Elliott <elliott@hp.com>2015-01-23 23:42:54 +0100
committerJames Bottomley <JBottomley@Parallels.com>2015-02-02 18:57:39 +0100
commit8947fd10865db321205faa0e4123d165aff0781c (patch)
treeafa72496bef8eff00f52d03526348fe8e920991e /drivers/scsi/hpsa.h
parenthpsa: fix memory leak in hpsa_alloc_cmd_pool (diff)
downloadlinux-8947fd10865db321205faa0e4123d165aff0781c.tar.xz
linux-8947fd10865db321205faa0e4123d165aff0781c.zip
hpsa: avoid unneccesary calls to resource freeing functions
If hpsa_allocate_cmd_pool failed, we were calling two functions unnecessarily: hpsa_free_sg_chain_blocks(h); hpsa_free_cmd_pool(h); This didn't cause any problem, as those functions can tolerate being called when what they free hasn't been allocated (relevant pointers would be NULL) but it is potentially confusing. Reviewed-by: Scott Teel <scott.teel@pmcs.com> Signed-off-by: Robert Elliott <elliott@hp.com> Signed-off-by: Don Brace <don.brace@pmcs.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/hpsa.h')
0 files changed, 0 insertions, 0 deletions