summaryrefslogtreecommitdiff
path: root/crypto/cast6_generic.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-01-09 17:26:24 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-22 15:43:52 +0100
commit1d808f828f4cc97bd2f7dbafce2e9a33f3d8a86d (patch)
tree5e6835afafaa76456f4f37879c7bdefa58cead22 /crypto/cast6_generic.c
parentee3d989b3d59dbbb3b5c3eb33434b5ef38b3023e (diff)
kselftest: fix OOM in memory compaction test
commit 4c1baad223906943b595a887305f2e8124821dad upstream. Running the compaction_test sometimes results in out-of-memory failures. When I debugged this, it turned out that the code to reset the number of hugepages to the initial value is simply broken since we write into an open sysctl file descriptor multiple times without seeking back to the start. Adding the lseek here fixes the problem. Cc: stable@vger.kernel.org Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org> Link: https://bugs.linaro.org/show_bug.cgi?id=3145 Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/cast6_generic.c')
0 files changed, 0 insertions, 0 deletions