projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kvm: x86: IA32_ARCH_CAPABILITIES is always supported
[linux-2.6-microblaze.git]
/
lib
/
test_kmod.c
diff --git
a/lib/test_kmod.c
b/lib/test_kmod.c
index
e372b97
..
0e5b7a6
100644
(file)
--- a/
lib/test_kmod.c
+++ b/
lib/test_kmod.c
@@
-1141,7
+1141,7
@@
static struct kmod_test_device *register_test_dev_kmod(void)
mutex_lock(®_dev_mutex);
/* int should suffice for number of devices, test for wrap */
- if (
unlikely(num_test_devs + 1) < 0
) {
+ if (
num_test_devs + 1 == INT_MAX
) {
pr_err("reached limit of number of test devices\n");
goto out;
}