Skip to content
Commit b690020a authored by Guido Kiener's avatar Guido Kiener Committed by Greg Kroah-Hartman
Browse files

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: default avatarGuido Kiener <guido.kiener@rohde-schwarz.com>
Fixes: d7604ff0 ("usb: usbtmc: Optimize usbtmc_read")
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 100f2cde
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment