tick/broadcast: Prevent NULL pointer dereference
authorThomas Gleixner <tglx@linutronix.de>
Sat, 11 Jul 2015 12:26:34 +0000 (14:26 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 11 Jul 2015 12:26:34 +0000 (14:26 +0200)
commitc4d029f2d43b39de7b9299e8b58102a442ba86f8
treec0d36234d8108f43a76212d12b437bdf1b752aa8
parent1f6823faa8c563431a94e614d2b63ce16bb6f658
tick/broadcast: Prevent NULL pointer dereference

Dan reported that the recent changes to the broadcast code introduced
a potential NULL dereference.

Add the proper check.

Fixes: e0454311903d "tick/broadcast: Sanity check the shutdown of the local clock_event"
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/tick-broadcast.c