Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24955
b: refs/heads/master
c: 30c14e4
h: refs/heads/master
i:
  24953: 6ab8ba0
  24951: 7c07c0d
v: v3
  • Loading branch information
Jes Sorensen authored and Linus Torvalds committed Mar 31, 2006
1 parent 20772aa commit bb736eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d21c356b08820e60501ce7a42107a7f05863d91d
refs/heads/master: 30c14e40ed85469f166b5effdab6705c73c5cd5e
8 changes: 5 additions & 3 deletions trunk/fs/select.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ static int core_sys_select(int n, fd_set __user *inp, fd_set __user *outp,
int ret, size, max_fdset;
struct fdtable *fdt;
/* Allocate small arguments on the stack to save memory and be faster */
char stack_fds[SELECT_STACK_ALLOC];
long stack_fds[SELECT_STACK_ALLOC/sizeof(long)];

ret = -EINVAL;
if (n < 0)
Expand Down Expand Up @@ -639,8 +639,10 @@ int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds, s64 *timeout)
struct poll_list *walk;
struct fdtable *fdt;
int max_fdset;
/* Allocate small arguments on the stack to save memory and be faster */
char stack_pps[POLL_STACK_ALLOC];
/* Allocate small arguments on the stack to save memory and be
faster - use long to make sure the buffer is aligned properly
on 64 bit archs to avoid unaligned access */
long stack_pps[POLL_STACK_ALLOC/sizeof(long)];
struct poll_list *stack_pp = NULL;

/* Do a sanity check on nfds ... */
Expand Down

0 comments on commit bb736eb

Please sign in to comment.