rds: rds_rm_zerocopy_callback() use list_first_entry()
authorPietro Borrello <borrello@diag.uniroma1.it>
Tue, 7 Feb 2023 18:26:34 +0000 (18:26 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 9 Feb 2023 09:37:26 +0000 (10:37 +0100)
commitf753a68980cf4b59a80fe677619da2b1804f526d
treecd8b504872d3f8692f0e672e2427d8f455aa8a93
parent646be03ec46cc736d78ca4db2e0b00fa84446d77
rds: rds_rm_zerocopy_callback() use list_first_entry()

rds_rm_zerocopy_callback() uses list_entry() on the head of a list
causing a type confusion.
Use list_first_entry() to actually access the first element of the
rs_zcookie_queue list.

Fixes: 9426bbc6de99 ("rds: use list structure to track information for zerocopy completion notification")
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Pietro Borrello <borrello@diag.uniroma1.it>
Link: https://lore.kernel.org/r/20230202-rds-zerocopy-v3-1-83b0df974f9a@diag.uniroma1.it
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/rds/message.c