@@ -1021,8 +1021,8 @@ int find_same_lease_key(struct ksmbd_session *sess, struct ksmbd_inode *ci,
goto out;
}
op_next:
- opinfo_put(opinfo);
rcu_read_lock();
+ opinfo_put(opinfo);
}
rcu_read_unlock();
@@ -1314,8 +1314,8 @@ void smb_break_all_levII_oplock(struct ksmbd_work *work, struct ksmbd_file *fp,
brk_op->open_trunc = is_trunc;
oplock_break(brk_op, SMB2_OPLOCK_LEVEL_NONE);
next:
- opinfo_conn_put(brk_op);
rcu_read_lock();
+ opinfo_conn_put(brk_op);
}
rcu_read_unlock();
@@ -1711,8 +1711,8 @@ struct oplock_info *lookup_lease_in_table(struct ksmbd_conn *conn,
goto out;
}
op_next:
- opinfo_put(opinfo);
rcu_read_lock();
+ opinfo_put(opinfo);
}
rcu_read_unlock();