summaryrefslogtreecommitdiff
path: root/lib/checksum.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2009-12-17 13:57:33 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-02 22:53:20 (GMT)
commit8bc1d21776bb012e41ed062c6d842cfe7c82998a (patch)
tree5499dedfb7033685bbd13d4852f478410878c4a2 /lib/checksum.c
parent319c3ea451e19f72b578661e26fb33739af5ae1c (diff)
downloadlinux-8bc1d21776bb012e41ed062c6d842cfe7c82998a.tar.xz
USB: wusb: check CHID is all zeros before stopping the host
An incorrect sizeof() resulted in only 4 (or 8) octets of the CHID being checked instead of all 16 octets. A randomly generated CHID had a probability of being unable to start a WUSB host of less than 1 in 2 billion. Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: David Vrabel <david.vrabel@csr.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/checksum.c')
0 files changed, 0 insertions, 0 deletions