Merge "diag: Initialize spin lock once per memory device channel"

This commit is contained in:
Linux Build Service Account 2016-12-20 23:44:57 -08:00 committed by Gerrit - the friendly Code Review server
commit dc22d4ffc3

View file

@ -356,8 +356,8 @@ int diag_md_init()
ch->tbl[j].buf = NULL;
ch->tbl[j].len = 0;
ch->tbl[j].ctx = 0;
spin_lock_init(&(ch->lock));
}
spin_lock_init(&(ch->lock));
}
return 0;