[PATCH] iser: fix segfault when not passing options to iser param
Roi Dayan <[email protected]> Mon, 25 Jul 2016 17:00:38 +0300
| Newsgroups | org.kernel.vger.stgt |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Roi Dayan <[email protected]> --- usr/iscsi/iser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr/iscsi/iser.c b/usr/iscsi/iser.c index 7befd06..67d5c83 100644 --- a/usr/iscsi/iser.c +++ b/usr/iscsi/iser.c @@ -3583,6 +3583,9 @@ static int iser_param_parser(char *p) int err = 0; char *q; + if (!p) + return 0; + while (*p) { if (!strncmp(p, lld_param_port, strlen(lld_param_port))) { short int port_val; -- 1.8.4.3