diff options
| author | Aditya Pakki <[email protected]> | 2019-03-19 02:19:56 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2019-03-21 11:24:38 +0000 |
| commit | 2e84f116afca3719c9d0a1a78b47b48f75fd5724 (patch) | |
| tree | bc904b4ec34bfd80cd758b509f2e28958c9b2016 /drivers/fpga/socfpga-a10.c | |
| parent | x86/lib: Fix indentation issue, remove extra tab (diff) | |
| download | kernel-2e84f116afca3719c9d0a1a78b47b48f75fd5724.tar.gz kernel-2e84f116afca3719c9d0a1a78b47b48f75fd5724.zip | |
x86/hpet: Prevent potential NULL pointer dereference
hpet_virt_address may be NULL when ioremap_nocache fail, but the code lacks
a check.
Add a check to prevent NULL pointer dereference.
Signed-off-by: Aditya Pakki <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: Borislav Petkov <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Joe Perches <[email protected]>
Cc: Nicolai Stange <[email protected]>
Cc: Roland Dreier <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/socfpga-a10.c')
0 files changed, 0 insertions, 0 deletions
