diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2011-03-24 08:02:58 -0700 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2011-04-13 16:19:49 -0700 |
commit | 386139d7c8f22d4983ca89de35d339cc41bb0996 (patch) | |
tree | b17d3deb6538c370854f3e59d2a152004feda75a /crypto/seqiv.c | |
parent | dfa49c4ad120a784ef1ff0717168aa79f55a483a (diff) | |
download | kernel_samsung_smdk4412-386139d7c8f22d4983ca89de35d339cc41bb0996.zip kernel_samsung_smdk4412-386139d7c8f22d4983ca89de35d339cc41bb0996.tar.gz kernel_samsung_smdk4412-386139d7c8f22d4983ca89de35d339cc41bb0996.tar.bz2 |
xhci: Fix NULL pointer deref in handle_port_status()
When we get a port status change event, we need to figure out what type of
port it came from: a USB 3.0 port, or a USB 2.0/1.1 port. We can't know
which usb_hcd to use until that point, so hcd will be NULL for part of the
function. Unfortunately, if any of the sanity checks fail, we'll jump to
the cleanup label before hcd is set to a valid pointer, and then we'll
attempt to tell the USB core to kick the hcd, which is NULL.
Skip kicking the roothub if the sanity checks fail.
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'crypto/seqiv.c')
0 files changed, 0 insertions, 0 deletions