Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[sfrench/cifs-2.6.git] / drivers / scsi / qla2xxx / qla_attr.c
index 2eb1ae721a7d3663512d1b4b18850b4cd7c500c5..f928c4d3a1efe3f5b8a5441344e358aaa9875fd0 100644 (file)
@@ -1652,6 +1652,8 @@ qla2x00_port_speed_store(struct device *dev, struct device_attribute *attr,
        }
 
        rval = kstrtol(buf, 10, &type);
+       if (rval)
+               return rval;
        speed = type;
        if (type == 40 || type == 80 || type == 160 ||
            type == 320) {