summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorWilliam Kucharski <william.kucharski@oracle.com>2020-08-07 09:18:17 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-08-07 21:33:22 +0300
commitfa9ba3aa89f9f1c003b5f5cde893bbbc140c7223 (patch)
treed099883fd711d6af50a06e5a60c0656fc7bdaae9 /init
parent453431a54934d917153c65211b2dabf45562ca88 (diff)
downloadlinux-fa9ba3aa89f9f1c003b5f5cde893bbbc140c7223.tar.xz
mm: ksize() should silently accept a NULL pointer
Other mm routines such as kfree() and kzfree() silently do the right thing if passed a NULL pointer, so ksize() should do the same. Signed-off-by: William Kucharski <william.kucharski@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: David Hildenbrand <david@redhat.com> Cc: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Link: http://lkml.kernel.org/r/20200616225409.4670-1-william.kucharski@oracle.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions