Tom Seewald b11701c933 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>
2021-05-13 17:33:36 +02:00
..
2021-04-28 15:54:57 -07:00
2021-04-05 08:43:50 +02:00
2020-03-19 07:41:02 +01:00
2021-05-07 00:26:34 -07:00