diff options
-rw-r--r-- | init/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c index 8da358cb5..85792c9b7 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -333,7 +333,7 @@ static unsigned int check_free_memory(void) | |||
333 | s--; | 333 | s--; |
334 | } | 334 | } |
335 | result = (info.totalram >> s) + (info.totalswap >> s); | 335 | result = (info.totalram >> s) + (info.totalswap >> s); |
336 | if ((unsigned long long) (result * u) > UINT_MAX) { | 336 | if (((unsigned long long)result * (unsigned long long)u) > UINT_MAX) { |
337 | return(UINT_MAX); | 337 | return(UINT_MAX); |
338 | } else { | 338 | } else { |
339 | return(result * u); | 339 | return(result * u); |