]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb79267f5cb1417562cb3098d3c65cf9767575b95
tree7267e53b8ebdc4b1529bc442709a679e11575524
parentd50690549570deaecc143455743589611d60b9dc
IB/srpt: Do not accept invalid initiator port names

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

Fixes: commit 0f5742fdbe17 ("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