[PATCH] iser: fix segfault when not passing options to iser param

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux