diff options
author | Kangjie Lu <kjlu@umn.edu> | 2019-04-01 17:46:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-15 11:54:57 +0200 |
commit | 179e70d0260f71b19d4a06d726e7d716fc562875 (patch) | |
tree | 225f7e6c6adf730712725bf6ee051ecf39e579ad /block | |
parent | 4eb9e877981af1f3cf1d4a04687567805b419c6c (diff) | |
download | linux-stable-179e70d0260f71b19d4a06d726e7d716fc562875.tar.gz linux-stable-179e70d0260f71b19d4a06d726e7d716fc562875.tar.bz2 linux-stable-179e70d0260f71b19d4a06d726e7d716fc562875.zip |
video: imsttfb: fix potential NULL pointer dereferences
[ Upstream commit 1d84353d205a953e2381044953b7fa31c8c9702d ]
In case ioremap fails, the fix releases resources and returns
-ENOMEM to avoid NULL pointer dereferences.
Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Cc: Aditya Pakki <pakki001@umn.edu>
Cc: Finn Thain <fthain@telegraphics.com.au>
Cc: Rob Herring <robh@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[b.zolnierkie: minor patch summary fixup]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions