Skip to content
Commit 0c85a7e8 authored by Aditya Pakki's avatar Aditya Pakki Committed by David S. Miller
Browse files

net/rds: Avoid potential use after free in rds_send_remove_from_sock



In case of rs failure in rds_send_remove_from_sock(), the 'rm' resource
is freed and later under spinlock, causing potential use-after-free.
Set the free pointer to NULL to avoid undefined behavior.

Signed-off-by: default avatarAditya Pakki <pakki001@umn.edu>
Acked-by: default avatarSantosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5219d601
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment