aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_aux.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/scsi/zfcp_aux.c')
-rw-r--r--drivers/s390/scsi/zfcp_aux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c
index fc4a28953824..f140b46df12a 100644
--- a/drivers/s390/scsi/zfcp_aux.c
+++ b/drivers/s390/scsi/zfcp_aux.c
@@ -29,6 +29,8 @@
29#include <linux/seq_file.h> 29#include <linux/seq_file.h>
30#include "zfcp_ext.h" 30#include "zfcp_ext.h"
31 31
32#define ZFCP_BUS_ID_SIZE 20
33
32static char *device; 34static char *device;
33 35
34MODULE_AUTHOR("IBM Deutschland Entwicklung GmbH - linux390@de.ibm.com"); 36MODULE_AUTHOR("IBM Deutschland Entwicklung GmbH - linux390@de.ibm.com");
@@ -84,9 +86,9 @@ static int __init zfcp_device_setup(char *devstr)
84 strcpy(str, devstr); 86 strcpy(str, devstr);
85 87
86 token = strsep(&str, ","); 88 token = strsep(&str, ",");
87 if (!token || strlen(token) >= BUS_ID_SIZE) 89 if (!token || strlen(token) >= ZFCP_BUS_ID_SIZE)
88 goto err_out; 90 goto err_out;
89 strncpy(zfcp_data.init_busid, token, BUS_ID_SIZE); 91 strncpy(zfcp_data.init_busid, token, ZFCP_BUS_ID_SIZE);
90 92
91 token = strsep(&str, ","); 93 token = strsep(&str, ",");
92 if (!token || strict_strtoull(token, 0, 94 if (!token || strict_strtoull(token, 0,