]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rds: Second bind() can overwrite the first bind()
authorKa-Cheong Poon <ka-cheong.poon@oracle.com>
Mon, 18 Dec 2017 16:23:57 +0000 (08:23 -0800)
committerJack Vogel <jack.vogel@oracle.com>
Thu, 1 Feb 2018 23:05:22 +0000 (15:05 -0800)
commit9df5fd9575a428505c1b0294355ac532cc511a98
treeb879ad8cd5692c7ee57aa69eb235ed037e35556a
parent032e4d4b1663621aceed4859b7242808a27ff220
rds: Second bind() can overwrite the first bind()

In rds_bind(), it does not check if a socket is already bound
or not.  Hence a second bind() will overwrite what is done in
the first bind().

Orabug: 27463500

Signed-off-by: Ka-Cheong Poon <ka-cheong.poon@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
net/rds/bind.c