summaryrefslogtreecommitdiff
path: root/lib/ioremap.c
diff options
context:
space:
mode:
authorArto Merilainen <amerilainen@nvidia.com>2016-05-10 09:16:03 +0300
committerWinnie Hsu <whsu@nvidia.com>2016-05-24 16:04:24 -0700
commit58e3084c00ca7b7ae59f906bb4e1948b0f1e291f (patch)
treea3a4914591a3486e2b489f579784b8177e95d680 /lib/ioremap.c
parentbb7faf0544ccc7c310c27dd43857dc2a62fc7e5c (diff)
video: tegra: host: Fix ch open error handling
In case kernel fails to open a channel (e.g. due to inability to allocate hardware context or turn on the device), the channel open function releases the resources that were already allocated successfully. However, currently the error path additionally calls the channel release function for putting the channel pointer after the private data structures have been freed - thereby causing use-after-free memory usage. This patch reworks error handling in channel open to release channel without risking usage of already freed memory. Bug 1763577 Change-Id: Ic7562e69f2babad653afc7a11e413701494a30b4 Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/1148081 Reviewed-by: Winnie Hsu <whsu@nvidia.com> Tested-by: Winnie Hsu <whsu@nvidia.com>
Diffstat (limited to 'lib/ioremap.c')
0 files changed, 0 insertions, 0 deletions