diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-14 14:46:59 -0700 | 
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-14 14:46:59 -0700 | 
| commit | cf0a1579dda4423c43f584a6bf029f033cf1e663 (patch) | |
| tree | 089de37c7cc13f9f21ce630737ff3d288e52947f /lib/test_kmod.c | |
| parent | 8a5a90a2a477b86a3dc2eaa5a706db9bfdd647ca (diff) | |
| parent | ef954844c7ace62f773f4f23e28d2d915adc419f (diff) | |
Merge 4.13-rc5 into tty-next
We want the fixes in here, and we resolve the merge issue in the
8250_core.c file.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/test_kmod.c')
| -rw-r--r-- | lib/test_kmod.c | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/test_kmod.c b/lib/test_kmod.c index 6c1d678bcf8b..ff9148969b92 100644 --- a/lib/test_kmod.c +++ b/lib/test_kmod.c @@ -485,7 +485,7 @@ static ssize_t config_show(struct device *dev,  				config->test_driver);  	else  		len += snprintf(buf+len, PAGE_SIZE - len, -				"driver:\tEMTPY\n"); +				"driver:\tEMPTY\n");  	if (config->test_fs)  		len += snprintf(buf+len, PAGE_SIZE - len, @@ -493,7 +493,7 @@ static ssize_t config_show(struct device *dev,  				config->test_fs);  	else  		len += snprintf(buf+len, PAGE_SIZE - len, -				"fs:\tEMTPY\n"); +				"fs:\tEMPTY\n");  	mutex_unlock(&test_dev->config_mutex); @@ -746,11 +746,11 @@ static int trigger_config_run_type(struct kmod_test_device *test_dev,  						      strlen(test_str));  		break;  	case TEST_KMOD_FS_TYPE: -		break;  		kfree_const(config->test_fs);  		config->test_driver = NULL;  		copied = config_copy_test_fs(config, test_str,  					     strlen(test_str)); +		break;  	default:  		mutex_unlock(&test_dev->config_mutex);  		return -EINVAL; @@ -880,10 +880,10 @@ static int test_dev_config_update_uint_sync(struct kmod_test_device *test_dev,  					    int (*test_sync)(struct kmod_test_device *test_dev))  {  	int ret; -	long new; +	unsigned long new;  	unsigned int old_val; -	ret = kstrtol(buf, 10, &new); +	ret = kstrtoul(buf, 10, &new);  	if (ret)  		return ret; @@ -918,9 +918,9 @@ static int test_dev_config_update_uint_range(struct kmod_test_device *test_dev,  					     unsigned int max)  {  	int ret; -	long new; +	unsigned long new; -	ret = kstrtol(buf, 10, &new); +	ret = kstrtoul(buf, 10, &new);  	if (ret)  		return ret; @@ -1146,7 +1146,7 @@ static struct kmod_test_device *register_test_dev_kmod(void)  	struct kmod_test_device *test_dev = NULL;  	int ret; -	mutex_unlock(®_dev_mutex); +	mutex_lock(®_dev_mutex);  	/* int should suffice for number of devices, test for wrap */  	if (unlikely(num_test_devs + 1) < 0) {  | 
