Commit 19c0199a authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] Fix a 64bit bug in kobject module request

From Takashi Iwai

kobj_lookup had a 64bit bug, which caused the request of a unknown
character device to burn CPU instead of failing quickly.
parent 7abe2c67
...@@ -96,7 +96,7 @@ struct kobject *kobj_lookup(struct kobj_map *domain, dev_t dev, int *index) ...@@ -96,7 +96,7 @@ struct kobject *kobj_lookup(struct kobj_map *domain, dev_t dev, int *index)
{ {
struct kobject *kobj; struct kobject *kobj;
struct probe *p; struct probe *p;
unsigned best = ~0U; unsigned long best = ~0UL;
retry: retry:
down_read(domain->sem); down_read(domain->sem);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment