summaryrefslogtreecommitdiffstats
path: root/fs/bfs
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-12-22 17:51:50 +0000
committerJens Wiklander <jens.wiklander@linaro.org>2017-12-28 22:20:10 +0100
commitc94f31b526fe658c25dd2d07c90486a85437f01c (patch)
tree7742a74048136041c64b869d4ea0aae6650a51b8 /fs/bfs
parent80ec6f5de60b6934f145b2f7e5369592bcab85f3 (diff)
downloadlinux-c94f31b526fe658c25dd2d07c90486a85437f01c.tar.bz2
tee: shm: don't put_page on null shm->pages
In the case that shm->pages fails to allocate, the current exit error path will try to put_page on a null shm->pages and cause a null pointer dereference when accessing shm->pages[n]. Fix this by only performing the put_page and kfree on shm->pages if it is not null. Detected by CoverityScan, CID#1463283 ("Dereference after null check") Fixes: 033ddf12bcf5 ("tee: add register user memory") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'fs/bfs')
0 files changed, 0 insertions, 0 deletions