]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Mon, 28 Oct 2019 16:46:23 +0000 (17:46 +0100)
commit799a6a70f3e046e7fa6c96c2c3b628673ec97778
tree1d5f5841dab019a4e471c361bec4b5632b04b91a
parent844e4c9db5ce32160fafb886d5b099e55923b50e
USB: ldusb: use unsigned size format specifiers

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>
drivers/usb/misc/ldusb.c