Explorar o código

Merge branch 'core/types' into x86/x32

H. Peter Anvin %!s(int64=13) %!d(string=hai) anos
pai
achega
3f21723079
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      fs/file.c

+ 1 - 1
fs/file.c

@@ -179,7 +179,7 @@ static struct fdtable * alloc_fdtable(unsigned int nr)
 	if (!data)
 		goto out_arr;
 	fdt->open_fds = data;
-	data += nr / BITS_PER_LONG;
+	data += nr / BITS_PER_BYTE;
 	fdt->close_on_exec = data;
 	fdt->next = NULL;