diff options
author | Tom Seewald <tseewald@gmail.com> | 2021-05-03 14:56:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-13 18:33:36 +0300 |
commit | b11701c933112d49b808dee01cb7ff854ba6a77a (patch) | |
tree | d91ea71ea837c5328e0927245b93c0fe9d7d0d9d /drivers/char/hw_random/st-rng.c | |
parent | 566f53238da74801b48e985788e5f7c9159e5940 (diff) | |
download | linux-b11701c933112d49b808dee01cb7ff854ba6a77a.tar.xz |
char: hpet: add checks after calling ioremap
The function hpet_resources() calls ioremap() two times, but in both
cases it does not check if ioremap() returned a null pointer. Fix this
by adding null pointer checks and returning an appropriate error.
Signed-off-by: Tom Seewald <tseewald@gmail.com>
Link: https://lore.kernel.org/r/20210503115736.2104747-30-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/hw_random/st-rng.c')
0 files changed, 0 insertions, 0 deletions