percpu: fix static checker warnings in pcpu_destroy_chunk
authorDennis Zhou <dennisz@fb.com>
Thu, 29 Jun 2017 14:56:26 +0000 (10:56 -0400)
committerTejun Heo <tj@kernel.org>
Thu, 29 Jun 2017 15:23:38 +0000 (11:23 -0400)
commite3efe3db932b55ed34ba32862f568abae32046d0
tree3c3e23c3d91b47bd3fd9957a4c4638abb7d53074
parent303abfdf76ea41c228e8b3da73ed3807121a9ca6
percpu: fix static checker warnings in pcpu_destroy_chunk

From 5021b97f4026334d2c8dfad80797dd1028cddd73 Mon Sep 17 00:00:00 2001
From: Dennis Zhou <dennisz@fb.com>
Date: Thu, 29 Jun 2017 07:11:41 -0700

Add NULL check in pcpu_destroy_chunk to correct static checker warnings.

Signed-off-by: Dennis Zhou <dennisz@fb.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu-km.c
mm/percpu-vm.c