diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/test_kmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_kmod.c b/lib/test_kmod.c index ff9148969b92..67fc7b9f41e3 100644 --- a/lib/test_kmod.c +++ b/lib/test_kmod.c | |||
| @@ -924,7 +924,7 @@ static int test_dev_config_update_uint_range(struct kmod_test_device *test_dev, | |||
| 924 | if (ret) | 924 | if (ret) |
| 925 | return ret; | 925 | return ret; |
| 926 | 926 | ||
| 927 | if (new < min || new > max || new > UINT_MAX) | 927 | if (new < min || new > max) |
| 928 | return -EINVAL; | 928 | return -EINVAL; |
| 929 | 929 | ||
| 930 | mutex_lock(&test_dev->config_mutex); | 930 | mutex_lock(&test_dev->config_mutex); |
