diff options
author | Nishanth Aravamudan <[email protected]> | 2008-02-13 15:03:19 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2008-02-13 16:21:18 -0800 |
commit | 064d9efe947542097be669581f82d6b097e81d1a (patch) | |
tree | ddfc9f1c4d60135a7d7a1c5ebb7d0e85f683cfcb /net/unix/sysctl_net_unix.c | |
parent | 2695a14d315c014474ccadbaed40b0169b00cb5b (diff) |
hugetlb: fix overcommit locking
proc_doulongvec_minmax() calls copy_to_user()/copy_from_user(), so we can't
hold hugetlb_lock over the call. Use a dummy variable to store the sysctl
result, like in hugetlb_sysctl_handler(), then grab the lock to update
nr_overcommit_huge_pages.
Signed-off-by: Nishanth Aravamudan <[email protected]>
Reported-by: Miles Lane <[email protected]>
Cc: Adam Litke <[email protected]>
Cc: David Gibson <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions