]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
IB/srp: Fix IPv6 address parsing
authorBart Van Assche <bart.vanassche@wdc.com>
Mon, 12 Mar 2018 20:55:55 +0000 (13:55 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Mar 2018 19:54:07 +0000 (15:54 -0400)
commitc62adb7def71d7e0b4ba44f8da81a448eb53d6d5
treed27c6ec28df1f7380e65a4e1c0b5662494ba6f1a
parent19b1f54099b6ee334acbfbcfbdffd1d1f057216d
IB/srp: Fix IPv6 address parsing

Split IPv6 addresses at the colon that separates the IPv6 address
and the port number instead of at a colon in the middle of the IPv6
address. Check whether the IPv6 address is surrounded with square
brackets.

Fixes: 19f313438c77 ("IB/srp: Add RDMA/CM support")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c