Without this the size of follows/follows_bt won't ever change, and
if the total lock number larger than 4094 it will cause crash in
lockdep_will_lock().
Signed-off-by: Xiubo Li <xiubli@redhat.com>
if (current_maxid <= (unsigned)id) {
current_maxid = (unsigned)id + 1;
if (current_maxid == follows.size()) {
- follows.resize(current_maxid);
- follows_bt.resize(current_maxid);
+ follows.resize(current_maxid + 1);
+ follows_bt.resize(current_maxid + 1);
}
}
lock_ids[name] = id;