Commit 3e32b40
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 a42d985 ("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>1 parent 54a8d93 commit 3e32b40
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3425 | 3425 | | |
3426 | 3426 | | |
3427 | 3427 | | |
3428 | | - | |
| 3428 | + | |
3429 | 3429 | | |
3430 | 3430 | | |
3431 | 3431 | | |
| |||
3437 | 3437 | | |
3438 | 3438 | | |
3439 | 3439 | | |
3440 | | - | |
3441 | | - | |
3442 | | - | |
3443 | | - | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
3444 | 3443 | | |
3445 | 3444 | | |
3446 | 3445 | | |
| |||
0 commit comments