diff options
| author | Thomas Gleixner <[email protected]> | 2019-08-19 14:31:46 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2019-08-21 18:27:15 +0000 |
| commit | 692117c1f7a6770ed41dd8f277cd9fed1dfb16f1 (patch) | |
| tree | 6ca4c1c027ce037bc2d3a04da36197eea8c1f288 /drivers/clocksource/hyperv_timer.c | |
| parent | hrtimer: Don't take expiry_lock when timer is currently migrated (diff) | |
| download | kernel-692117c1f7a6770ed41dd8f277cd9fed1dfb16f1.tar.gz kernel-692117c1f7a6770ed41dd8f277cd9fed1dfb16f1.zip | |
posix-cpu-timers: Sanitize bogus WARNONS
Warning when p == NULL and then proceeding and dereferencing p does not
make any sense as the kernel will crash with a NULL pointer dereference
right away.
Bailing out when p == NULL and returning an error code does not cure the
underlying problem which caused p to be NULL. Though it might allow to
do proper debugging.
Same applies to the clock id check in set_process_cpu_timer().
Clean them up and make them return without trying to do further damage.
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Frederic Weisbecker <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/clocksource/hyperv_timer.c')
0 files changed, 0 insertions, 0 deletions
