https://github.com/torvalds/linux
Revision 91e630d9ae6de6f740ef7c8176736eb55366833e authored by Vladimir Zapolskiy on 09 March 2016, 23:22:19 UTC, committed by Mike Snitzer on 30 August 2016, 23:41:43 UTC
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: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
1 parent 7efb367
History
Tip revision: 91e630d9ae6de6f740ef7c8176736eb55366833e authored by Vladimir Zapolskiy on 09 March 2016, 23:22:19 UTC
dm log writes: fix check of kthread_run() return value
Tip revision: 91e630d
File Mode Size
Makefile -rw-r--r-- 230 bytes
arraymap.c -rw-r--r-- 14.4 KB
core.c -rw-r--r-- 28.7 KB
hashtab.c -rw-r--r-- 19.3 KB
helpers.c -rw-r--r-- 5.0 KB
inode.c -rw-r--r-- 7.4 KB
percpu_freelist.c -rw-r--r-- 2.2 KB
percpu_freelist.h -rw-r--r-- 929 bytes
stackmap.c -rw-r--r-- 7.4 KB
syscall.c -rw-r--r-- 19.8 KB
verifier.c -rw-r--r-- 77.1 KB

back to top