Commit 5ae92892 authored by David S. Miller's avatar David S. Miller

kernel/pid.c:next_free_map Pass 3rd arg to cmpxchg as pointer.

parent fbd04fca
...@@ -77,7 +77,7 @@ static inline pidmap_t *next_free_map(pidmap_t *map, int *max_steps) ...@@ -77,7 +77,7 @@ static inline pidmap_t *next_free_map(pidmap_t *map, int *max_steps)
* Free the page if someone raced with us * Free the page if someone raced with us
* installing it: * installing it:
*/ */
if (cmpxchg(&map->page, NULL, page)) if (cmpxchg(&map->page, NULL, (void *) page))
free_page(page); free_page(page);
if (!map->page) if (!map->page)
break; break;
......
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