USB: ldusb: use unsigned size format specifiers
authorJohan Hovold <johan@kernel.org>
Tue, 22 Oct 2019 14:32:03 +0000 (16:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Nov 2019 18:21:08 +0000 (19:21 +0100)
commitcd9561a53d263745f48768e23b02d08bdde1c5b3
tree901b3dd7fca8e94c9b5ecd74ff1f85ee4c99a62c
parentc753113ae714e0329e5fe926da07e325c83aad66
USB: ldusb: use unsigned size format specifiers

[ Upstream commit 88f6bf3846ee90bf33aa1ce848cd3bfb3229f4a4 ]

A recent info-leak bug manifested itself along with warning about a
negative buffer overflow:

ldusb 1-1:0.28: Read buffer overflow, -131383859965943 bytes dropped

when it was really a rather large positive one.

A sanity check that prevents this has now been put in place, but let's
fix up the size format specifiers, which should all be unsigned.

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191022143203.5260-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/misc/ldusb.c