|
@@ -47,7 +47,7 @@ static ssize_t qlcnic_store_bridged_mode(struct device *dev,
|
|
|
if (!test_bit(__QLCNIC_DEV_UP, &adapter->state))
|
|
|
goto err_out;
|
|
|
|
|
|
- if (strict_strtoul(buf, 2, &new))
|
|
|
+ if (kstrtoul(buf, 2, &new))
|
|
|
goto err_out;
|
|
|
|
|
|
if (!qlcnic_config_bridged_mode(adapter, !!new))
|
|
@@ -77,7 +77,7 @@ static ssize_t qlcnic_store_diag_mode(struct device *dev,
|
|
|
struct qlcnic_adapter *adapter = dev_get_drvdata(dev);
|
|
|
unsigned long new;
|
|
|
|
|
|
- if (strict_strtoul(buf, 2, &new))
|
|
|
+ if (kstrtoul(buf, 2, &new))
|
|
|
return -EINVAL;
|
|
|
|
|
|
if (!!new != !!(adapter->flags & QLCNIC_DIAG_ENABLED))
|