aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2017-03-14 16:55:46 +0000
committerGreg Kroah-Hartman <[email protected]>2017-03-17 04:22:58 +0000
commit2e47c53503eb9faff42b3cfa144a833344dd1f89 (patch)
tree5f5ee146e1e527a37817d5b22a168c4ef7e4bc92 /net/unix/garbage.c
parentUSB: usbtmc: add missing endpoint sanity check (diff)
downloadkernel-2e47c53503eb9faff42b3cfa144a833344dd1f89.tar.gz
kernel-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 <[email protected]> # 4.6 Cc: Dave Penkler <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions