summaryrefslogtreecommitdiff
path: root/drivers/vhost/test.h
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2018-09-18 16:10:47 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-18 16:08:38 +0200
commit8801922cd94c918e4dc3a108ecaa500c4d40583f (patch)
tree2ceb2e0a4b511d597110aa1bbbc667564874bb68 /drivers/vhost/test.h
parentd193d1a210ff98ee2f47d54665d1aa716ae8051b (diff)
intel_th: Fix device removal logic
Commit a753bfcfdb1f ("intel_th: Make the switch allocate its subdevices") brings in new subdevice addition/removal logic that's broken for "host mode": the SWITCH device has no children to begin with, which is not handled in the code. This results in a null dereference bug later down the path. This patch fixes the subdevice removal code to handle host mode correctly. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Fixes: a753bfcfdb1f ("intel_th: Make the switch allocate its subdevices") CC: stable@vger.kernel.org # v4.14+ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/vhost/test.h')
0 files changed, 0 insertions, 0 deletions