diff options
author | Song Liu <songliubraving@fb.com> | 2017-07-31 23:52:26 +0200 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-08-08 16:42:36 +0200 |
commit | b44886c54a999771060371c3a05d5fedfc7e2102 (patch) | |
tree | 6803f9f24871193e61cecde1e21132006eac6d27 /drivers/watchdog/ts72xx_wdt.c | |
parent | md: fix test in md_write_start() (diff) | |
download | linux-b44886c54a999771060371c3a05d5fedfc7e2102.tar.xz linux-b44886c54a999771060371c3a05d5fedfc7e2102.zip |
md/r5cache: call mddev_lock/unlock() in r5c_journal_mode_set
In r5c_journal_mode_set(), it is necessary to call mddev_lock()
before accessing conf and conf->log. Otherwise, the conf->log
may change (and become NULL).
Shaohua: fix unlock in failure cases
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/watchdog/ts72xx_wdt.c')
0 files changed, 0 insertions, 0 deletions