From: Martin Schwidefsky Date: Fri, 24 Jul 2015 11:13:30 +0000 (+0200) Subject: hwrng: core - correct error check of kthread_run call X-Git-Tag: omap-for-v4.3/fixes-merge-window~147^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17fb874dee093139923af8ed36061faa92cc8e79;p=pandora-kernel.git hwrng: core - correct error check of kthread_run call The kthread_run() function can return two different error values but the hwrng core only checks for -ENOMEM. If the other error value -EINTR is returned it is assigned to hwrng_fill and later used on a kthread_stop() call which naturally crashes. Cc: stable@vger.kernel.org Signed-off-by: Martin Schwidefsky Signed-off-by: Herbert Xu --- Reading git-diff-tree failed