mirror of
https://gitee.com/openharmony/kernel_linux
synced 2025-01-29 22:07:48 +00:00
lnet_return_rx_credits_locked: don't abuse list_entry
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
83683dc6e0
commit
6d1ff4d6f3
@ -889,7 +889,7 @@ lnet_return_rx_credits_locked(struct lnet_msg *msg)
|
||||
*/
|
||||
LASSERT(msg->msg_kiov);
|
||||
|
||||
rb = list_entry(msg->msg_kiov, struct lnet_rtrbuf, rb_kiov[0]);
|
||||
rb = container_of(msg->msg_kiov, struct lnet_rtrbuf, rb_kiov[0]);
|
||||
rbp = rb->rb_pool;
|
||||
|
||||
msg->msg_kiov = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user