diff options
author | Johan Hovold <johan@kernel.org> | 2017-03-14 17:55:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-17 13:22:58 +0900 |
commit | 2e47c53503eb9faff42b3cfa144a833344dd1f89 (patch) | |
tree | 5f5ee146e1e527a37817d5b22a168c4ef7e4bc92 /drivers/iommu | |
parent | 687e0687f71ec00e0132a21fef802dee88c2f1ad (diff) | |
download | linux-stable-2e47c53503eb9faff42b3cfa144a833344dd1f89.tar.gz linux-stable-2e47c53503eb9faff42b3cfa144a833344dd1f89.tar.bz2 linux-stable-2e47c53503eb9faff42b3cfa144a833344dd1f89.zip |
USB: usbtmc: fix probe error path
Make sure to initialise the return value to avoid having allocation
failures going unnoticed when allocating interrupt-endpoint resources.
This prevents use-after-free or worse when the device is later unbound.
Fixes: dbf3e7f654c0 ("Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.")
Cc: stable <stable@vger.kernel.org> # 4.6
Cc: Dave Penkler <dpenkler@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iommu')
0 files changed, 0 insertions, 0 deletions