aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-02-24 13:51:39 +0300
committerJens Wiklander <jens.wiklander@linaro.org>2020-02-27 16:22:05 +0100
commitb83685bceedbeed33a6adc2d0579a011708d2b18 (patch)
tree871826ba2548317cc4a271fd53d9ef955a5bdf48 /Documentation/devicetree
parentLinux 5.6-rc2 (diff)
downloadlinux-dev-b83685bceedbeed33a6adc2d0579a011708d2b18.tar.xz
linux-dev-b83685bceedbeed33a6adc2d0579a011708d2b18.zip
tee: amdtee: fix memory leak in amdtee_open_session()
On these error paths the "sess" variable isn't freed. It's a refcounted pointer so we need to call kref_put(). I re-arranged the code a bit so the error case is always handled before the success case and the error paths are indented two tabs. Fixes: 757cc3e9ff1d ("tee: add AMD-TEE driver") Reviewed-by: Rijo Thomas <Rijo-john.Thomas@amd.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'Documentation/devicetree')
0 files changed, 0 insertions, 0 deletions