stgt.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roi Dayan <roid@mellanox.com>
To: fujita.tomonori@lab.ntt.co.jp
Cc: stgt@vger.kernel.org, Roi Dayan <roid@mellanox.com>
Subject: [PATCH] iser: fix segfault when not passing options to iser param
Date: Mon, 25 Jul 2016 17:00:38 +0300	[thread overview]
Message-ID: <1469455238-26716-1-git-send-email-roid@mellanox.com> (raw)

Signed-off-by: Roi Dayan <roid@mellanox.com>
---
 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

                 reply	other threads:[~2016-07-25 14:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1469455238-26716-1-git-send-email-roid@mellanox.com \
    --to=roid@mellanox.com \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=stgt@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).