summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/rtc/rtc-mxc_v2.txt
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@gmail.com>2017-12-13 21:56:04 +0800
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2018-01-12 00:20:34 +0100
commit298c8545206b2dd963079ff48fafd909e099856e (patch)
treeb8d9e8a26bf916072856f5f9865dc680162bc49e /Documentation/devicetree/bindings/rtc/rtc-mxc_v2.txt
parentcd8c0bb2bd57c48c451ebea86065257ef2500b00 (diff)
rtc: r7301: Fix a possible sleep-in-atomic bug in rtc7301_set_time
The driver may sleep under a spinlock. The function call path is: rtc7301_set_time (acquire the spinlock) usleep_range --> may sleep To fix it, usleep_range is replaced with udelay. This bug is found by my static analysis tool(DSAC) and checked by my code review. Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'Documentation/devicetree/bindings/rtc/rtc-mxc_v2.txt')
0 files changed, 0 insertions, 0 deletions