]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitec3108e7c8127cbfc838fd9fb04db9b89e4bb775
treef3075f495780a0ffc5d433ae7cb93aca8a40cf8e
parent9e10edc900254f4f9daf9d38cac9f78166dcb7bd
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