summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2018-03-16 16:33:01 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-16 15:40:18 +0100
commita400efe455f7b61ac9a801ac8d0d01f8c8d82dd5 (patch)
tree55974eee0f85b2a348b1ba633050efd5e07ad8db /drivers/md
parent0c341910cb3d2376cd438b074634b173af8a2a52 (diff)
downloadlinux-a400efe455f7b61ac9a801ac8d0d01f8c8d82dd5.tar.bz2
xhci: zero usb device slot_id member when disabling and freeing a xhci slot
set udev->slot_id to zero when disabling and freeing the xhci slot. Prevents usb core from calling xhci with a stale slot id. xHC controller may be reset during resume to recover from some error. All slots are unusable as they are disabled and freed. xhci driver starts slot enumeration again from 1 in the order they are enabled. In the worst case a stale udev->slot_id for one device matches a newly enabled slot_id for a different device, causing us to perform a action on the wrong device. Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions