Re: [PATCH] mm: ksize() should silently accept a NULL pointer

From: Matthew Wilcox
Date: Tue Jun 16 2020 - 20:45:31 EST


On Tue, Jun 16, 2020 at 04:54:09PM -0600, William Kucharski wrote:
> 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@xxxxxxxxxx>

Nice simplification.

Reviewed-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>