diff options
author | Yang Shi <yang.shi@linux.alibaba.com> | 2020-04-02 07:09:59 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-04-02 19:35:31 +0300 |
commit | 565dc842313fde3d0a2e817f96b42bd6a1eb0cad (patch) | |
tree | 96c7a1c7bd1749abeb64af931347745dc0ceffd3 /Documentation/xtensa/atomctl.rst | |
parent | fe925c0cb05b5616353e8b68eb914c9840cad2f9 (diff) | |
download | linux-565dc842313fde3d0a2e817f96b42bd6a1eb0cad.tar.xz |
mm: vmpressure: don't need call kfree if kstrndup fails
When kstrndup fails, no memory was allocated and we can exit directly.
[david@redhat.com: reword changelog]
Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: David Rientjes <rientjes@google.com>
Link: http://lkml.kernel.org/r/1581398649-125989-1-git-send-email-yang.shi@linux.alibaba.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/xtensa/atomctl.rst')
0 files changed, 0 insertions, 0 deletions