]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rtc: ds1685: passing bogus values to irq_restore
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 2 Mar 2016 10:07:45 +0000 (13:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 May 2016 21:48:51 +0000 (14:48 -0700)
commit83fe55baa881f1d7fed118b4f4ec3bf325d7285a
tree3d4891202d7fbf1e470553e33ed0756d68780116
parent041f2ca3ff039ebe10a48a775b29bf3fa7c993fa
rtc: ds1685: passing bogus values to irq_restore

commit 8c09b9fdecab1f4a289f07b46e2ad174b6641928 upstream.

We call spin_lock_irqrestore with "flags" set to zero instead of to the
value from spin_lock_irqsave().

Fixes: aaaf5fbf56f1 ('rtc: add driver for DS1685 family of real time clocks')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rtc/rtc-ds1685.c