summaryrefslogtreecommitdiff
path: root/drivers/cpuidle/driver.c
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2020-02-21 21:59:57 -0800
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2020-02-24 11:59:25 +0000
commit42c3d41832ef4fcf60aaa6f748de01ad99572adf (patch)
tree16890813b3f796335684d14b6af5e7db497944af /drivers/cpuidle/driver.c
parente658a4fea8efe70ce3b9b6628268485e134508d1 (diff)
downloadlinux-42c3d41832ef4fcf60aaa6f748de01ad99572adf.tar.gz
PCI: hv: Add missing kfree(hbus) in hv_pci_probe()'s error handling path
Now that we use kzalloc() to allocate the hbus buffer, we must call kfree() in the error path as well to prevent memory leakage. Fixes: 877b911a5ba0 ("PCI: hv: Avoid a kmemleak false positive caused by the hbus buffer") Signed-off-by: Dexuan Cui <decui@microsoft.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Diffstat (limited to 'drivers/cpuidle/driver.c')
0 files changed, 0 insertions, 0 deletions