Aditya Pakki 0c85a7e874 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: Aditya Pakki <pakki001@umn.edu>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-04-07 14:01:24 -07:00
..
2020-09-18 14:12:43 -07:00
2020-11-17 15:22:06 -04:00
2020-11-17 15:22:06 -04:00
2020-11-17 15:22:06 -04:00
2020-11-17 15:22:06 -04:00
2020-11-17 15:22:06 -04:00
2020-05-20 14:08:06 -07:00
2016-12-26 21:35:39 -05:00
2020-07-24 15:41:54 -07:00
2016-06-18 21:34:09 -07:00
2020-05-28 11:11:44 -07:00
2020-05-28 11:11:45 -07:00
2020-05-28 11:11:45 -07:00
2011-07-01 16:16:19 -07:00
2020-05-28 11:11:45 -07:00
2020-05-28 11:11:45 -07:00
2019-02-04 14:59:11 -08:00