intel_th: Fix a deadlock in modprobing
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Thu, 30 Jun 2016 08:51:44 +0000 (11:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Aug 2016 10:54:50 +0000 (12:54 +0200)
commit900ac92c5514dd8c63a8f3c91942dcb4cc6bd0f3
treeaae77ddbcb6a6333171de38addf2d46f23c88e64
parentdf1abbea005a621a497fc9def893ed2c6cba4d94
intel_th: Fix a deadlock in modprobing

commit a36aa80f3cb2540fb1dbad6240852de4365a2e82 upstream.

Driver initialization tries to request a hub (GTH) driver module from
its probe callback, resulting in a deadlock.

This patch solves the problem by adding a deferred work for requesting
the hub module.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/intel_th/core.c
drivers/hwtracing/intel_th/intel_th.h