Message ID | 20220122173915.3894-1-ematsumiya@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | fix return-type warning in usm_handle_logout_request() | expand |
2022-01-23 2:39 GMT+09:00, Enzo Matsumiya <ematsumiya@suse.de>: > Also put_ksmbd_user(user) before returning. > > Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de> Applied, Thanks for your work! PS: added prefix in subject.
diff --git a/lib/management/user.c b/lib/management/user.c index b4727a761ba0..5ce75e83b70a 100644 --- a/lib/management/user.c +++ b/lib/management/user.c @@ -405,4 +405,7 @@ int usm_handle_logout_request(struct ksmbd_logout_request *req) user->failed_login_count = 0; user->flags &= ~KSMBD_USER_FLAG_DELAY_SESSION; } + + put_ksmbd_user(user); + return 0; }
Also put_ksmbd_user(user) before returning. Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de> --- lib/management/user.c | 3 +++ 1 file changed, 3 insertions(+)