]> Git Repo - linux.git/blobdiff - mm/zsmalloc.c
mm: gup: fix the fast GUP race against THP collapse
[linux.git] / mm / zsmalloc.c
index 34f784a1604b7a60153567767f715fa3371eb675..907c9b1e1e6147d7c16441a3a0ee0ac9c9decd24 100644 (file)
@@ -1487,7 +1487,7 @@ void zs_free(struct zs_pool *pool, unsigned long handle)
        struct size_class *class;
        enum fullness_group fullness;
 
-       if (unlikely(!handle))
+       if (IS_ERR_OR_NULL((void *)handle))
                return;
 
        /*
This page took 0.032702 seconds and 4 git commands to generate.