Tom Seewald 73522d083d char: hpet: add checks after calling ioremap
[ Upstream commit b11701c933112d49b808dee01cb7ff854ba6a77a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-06-03 08:38:09 +02:00
..
2018-06-05 11:24:55 -07:00
2019-12-13 08:50:58 +01:00
2019-10-05 13:10:11 +02:00
2018-05-16 07:23:35 +02:00
2019-12-17 20:35:13 +01:00
2021-03-04 09:39:31 +01:00
2018-06-12 16:19:22 -07:00
2018-08-02 17:16:03 +02:00