usb: usbtmc: uninitialized symbol 'actual' in usbtmc_read
authorGuido Kiener <guido.kiener@rohde-schwarz.com>
Mon, 24 Sep 2018 23:30:30 +0000 (01:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Sep 2018 13:12:08 +0000 (15:12 +0200)
commitb690020a498e33c098dd2b5554a7a59fc08b5ca4
tree9643a84ee5a05c1f0a6975883b27234d062c0469
parent100f2cdeadffb3e63121d1d59a60a9882258c415
usb: usbtmc: uninitialized symbol 'actual' in usbtmc_read

Fix uninitialized symbol 'actual' in function usbtmc_read.

When symbol 'actual' is not initialized and usb_bulk_msg() fails,
the subsequent kernel debug message shows a random value.

Signed-off-by: Guido Kiener <guido.kiener@rohde-schwarz.com>
Fixes: d7604ff0dc01 ("usb: usbtmc: Optimize usbtmc_read")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/usbtmc.c