Skip to content
Commit 25b2edfa authored by Sasha Levin's avatar Sasha Levin Committed by NeilBrown
Browse files

md: setup safemode_timer before it's being used



We used to set up the safemode_timer timer in md_run. If md_run
would fail before the timer was set up we'd end up trying to modify
a timer that doesn't have a callback function when we access safe_delay_store,
which would trigger a BUG.

neilb: delete init_timer() call as setup_timer() does that.

Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.com>
parent 6cbd8148
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment