commit | 8105ea3af309cea687ed46ef7cdc2de178248df3 | [log] [tgz] |
---|---|---|
author | Bart Van Assche <bart.vanassche@wdc.com> | Wed Oct 11 10:27:22 2017 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Nov 30 08:39:07 2017 +0000 |
tree | 0c3a29fb480ceede30f6158f6d72cc3c8960b08e | |
parent | 194eb4a4fcd2098d00bca50561a18078b2a843e0 [diff] |
IB/srpt: Do not accept invalid initiator port names commit c70ca38960399a63d5c048b7b700612ea321d17e upstream. 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> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>