summaryrefslogtreecommitdiff
path: root/drivers/uwb/i1480
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-03-14 17:55:46 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-30 09:41:24 +0200
commit5e50afb2273c6fc8b2f9faa745d738662ce19e6f (patch)
tree045e2eaaa4d177769224844e98a7a8874ec17d8c /drivers/uwb/i1480
parent73c4e2ede5a999d8b48c6be8614aeeb7abbba90f (diff)
USB: usbtmc: fix probe error path
commit 2e47c53503eb9faff42b3cfa144a833344dd1f89 upstream. 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: 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/uwb/i1480')
0 files changed, 0 insertions, 0 deletions