https://github.com/torvalds/linux
Revision 5b59a3969e95cd9be3699ecf7149ae8ef103b6f5 authored by Colin Ian King on 08 August 2017, 17:41:02 UTC, committed by Doug Ledford on 16 August 2017, 15:30:33 UTC
When dmac is NULL, ah is not being freed on the error return path. Fix
this by kfree'ing it.

Detected by CoverityScan, CID#1452636 ("Resource Leak")

Fixes: d8966fcd4c25 ("IB/core: Use rdma_ah_attr accessor functions")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
1 parent aa939c1
History
Tip revision: 5b59a3969e95cd9be3699ecf7149ae8ef103b6f5 authored by Colin Ian King on 08 August 2017, 17:41:02 UTC
IB/hns: fix memory leak on ah on error return path
Tip revision: 5b59a39
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.3 KB
.mailmap -rw-r--r-- 8.1 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 96.2 KB
Kbuild -rw-r--r-- 2.2 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 410.7 KB
Makefile -rw-r--r-- 58.8 KB
README -rw-r--r-- 722 bytes

README

back to top