alarmtimers: Avoid possible null pointer traversal
authorJohn Stultz <john.stultz@linaro.org>
Thu, 4 Aug 2011 14:25:35 +0000 (07:25 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 10 Aug 2011 14:09:53 +0000 (07:09 -0700)
commit971c90bfa2f0b4fe52d6d9002178d547706f1343
treef3075f495780a0ffc5d433ae7cb93aca8a40cf8e
parent322a8b034003c0d46d39af85bf24fee27b902f48
alarmtimers: Avoid possible null pointer traversal

We don't check if old_setting is non null before assigning it, so
correct this.

CC: Thomas Gleixner <tglx@linutronix.de>
CC: stable@kernel.org
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/alarmtimer.c