diff options
author | Kangjie Lu <kjlu@umn.edu> | 2019-03-15 08:07:12 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-27 17:28:23 +0100 |
commit | 1bbb1c318cd8a3a39e8c3e2e83d5e90542d6c3e3 (patch) | |
tree | 9b2823d0e57404a05ad09065eed8650df3790ff3 /arch/unicore32/mm/cache-ucv2.S | |
parent | tty: fix read of tty->pgrp outside of ctrl_lock (diff) | |
download | linux-1bbb1c318cd8a3a39e8c3e2e83d5e90542d6c3e3.tar.xz linux-1bbb1c318cd8a3a39e8c3e2e83d5e90542d6c3e3.zip |
tty: ipwireless: fix missing checks for ioremap
ipw->attr_memory and ipw->common_memory are assigned with the
return value of ioremap. ioremap may fail, but no checks
are enforced. The fix inserts the checks to avoid potential
NULL pointer dereferences.
Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/unicore32/mm/cache-ucv2.S')
0 files changed, 0 insertions, 0 deletions