diff options
author | Pietro Borrello <borrello@diag.uniroma1.it> | 2023-02-07 18:26:34 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-22 12:50:32 +0100 |
commit | ba38eacade35dd2316d77b37494e6e0c01bab595 (patch) | |
tree | 021d2d186fc6522df99f07eedea0dcbc93ec4fb1 /tools | |
parent | 87a5e3fc8416106e290c448fc8a6dd50ab24c634 (diff) | |
download | linux-stable-ba38eacade35dd2316d77b37494e6e0c01bab595.tar.gz linux-stable-ba38eacade35dd2316d77b37494e6e0c01bab595.tar.bz2 linux-stable-ba38eacade35dd2316d77b37494e6e0c01bab595.zip |
rds: rds_rm_zerocopy_callback() use list_first_entry()
[ Upstream commit f753a68980cf4b59a80fe677619da2b1804f526d ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions