Files
linux/net/rds
Dotan Barak ba97088faa net/rds: Fix error handling in rds_ib_add_one()
[ Upstream commit d64bf89a75 ]

rds_ibdev:ipaddr_list and rds_ibdev:conn_list are initialized
after allocation some resources such as protection domain.
If allocation of such resources fail, then these uninitialized
variables are accessed in rds_ib_dev_free() in failure path. This
can potentially crash the system. The code has been updated to
initialize these variables very early in the function.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Sudhakar Dindukurti <sudhakar.dindukurti@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-07 18:53:23 +02:00
..
2019-05-02 09:32:05 +02:00
2016-03-02 14:13:19 -05:00
2009-02-26 23:39:25 -08:00
2016-03-02 14:13:17 -05:00
2009-02-26 23:39:26 -08:00
2018-04-20 08:21:07 +02:00
2013-03-08 00:35:44 -05:00
2016-06-18 21:34:09 -07:00
2011-07-01 16:16:19 -07:00
2016-06-18 21:34:09 -07:00