https://github.com/torvalds/linux
Revision 96044694b8511bc2b04df0776b4ba295cfe005c0 authored by Mathias Nyman on 11 September 2014, 10:55:50 UTC, committed by Greg Kroah-Hartman on 11 September 2014, 21:23:52 UTC
Resuming from hibernate (S4) will restart and re-initialize xHC.
The device contexts are freed and will be re-allocated later during device reset.

Usb core will disable link pm in device resume before device reset, which will
try to change the max exit latency, accessing the device contexts before they are re-allocated.

There is no need to zero (disable) the max exit latency when disabling hw lpm
for a freshly re-initialized xHC. So check that device context exists before
doing anything. The max exit latency will be set again after device reset when usb core
enables the link pm.

Reported-by: Imre Deak <imre.deak@intel.com>
Tested-by: Imre Deak <imre.deak@intel.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0eda06c
Raw File
Tip revision: 96044694b8511bc2b04df0776b4ba295cfe005c0 authored by Mathias Nyman on 11 September 2014, 10:55:50 UTC
xhci: fix oops when xhci resumes from hibernate with hw lpm capable devices
Tip revision: 9604469
module-internal.h
/* Module internals
 *
 * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells (dhowells@redhat.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public Licence
 * as published by the Free Software Foundation; either version
 * 2 of the Licence, or (at your option) any later version.
 */

extern int mod_verify_sig(const void *mod, unsigned long *_modlen);
back to top