Skip to content
Commit 91e630d9 authored by Vladimir Zapolskiy's avatar Vladimir Zapolskiy Committed by Mike Snitzer
Browse files

dm log writes: fix check of kthread_run() return value



The kthread_run() function returns either a valid task_struct or
ERR_PTR() value, check for NULL is invalid.  This change fixes potential
for oops, e.g. in OOM situation.

Signed-off-by: default avatarVladimir Zapolskiy <vz@mleia.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
parent 7efb3673
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment