OSDN Git Service

IB/srpt: Do not accept invalid initiator port names
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 11 Oct 2017 17:27:22 +0000 (10:27 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 18 Oct 2017 14:49:54 +0000 (10:49 -0400)
commitc70ca38960399a63d5c048b7b700612ea321d17e
tree7267e53b8ebdc4b1529bc442709a679e11575524
parent69abc735f45538fd3b3740a5293cd16cc09799cf
IB/srpt: Do not accept invalid initiator port names

Make srpt_parse_i_port_id() return a negative value if hex2bin()
fails.

Fixes: commit a42d985bd5b2 ("ib_srpt: Initial SRP Target merge for v3.3-rc1")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c