]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: verify a critical argument to rtc_update_irq() before using it
authorAlessandro Zummo <a.zummo@towertech.it>
Thu, 3 Apr 2014 21:50:09 +0000 (14:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:22 +0000 (16:21 -0700)
commitdfb7775dc0625a3fea90cff32cfa3e623fdd77ca
tree6a5ede933809e4d50c382af08178e8d6dbd41863
parentcfc0985dd2d174fcd79e7181d99d7f3ae54cb265
rtc: verify a critical argument to rtc_update_irq() before using it

This small addition to the core simplifies code in the drivers and makes
them more robust when handling shared IRQs.

Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/interface.c