diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2014-05-16 17:39:13 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 15:14:13 -0700 |
commit | d5afce82e131eb5a171afeba0bc5fefbe2417ad9 (patch) | |
tree | 0ee29f9b6e9df63e64ed94a0951b83b552c3bbeb /drivers/usb/core/hcd-pci.c | |
parent | df3ce23a56654bbf08e0c36ab1690cd8316a53c4 (diff) |
USB: keyspan: fix potential null pointer dereference
Move control-urb dereference to after NULL-check. There is otherwise a
risk of a possible null pointer dereference.
Was largely found by using a static code analysis program called
cppcheck.
[Johan: modify commit message somewhat ]
[gkh: remove stable tag as it's not a real problem that anyone has ever hit]
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/hcd-pci.c')
0 files changed, 0 insertions, 0 deletions