]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: Use correct data types for sizes in tpm_write() and tpm_read()
authorMichael Halcrow <mhalcrow@us.ibm.com>
Sat, 26 Jul 2008 02:45:00 +0000 (19:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Jul 2008 19:00:04 +0000 (12:00 -0700)
commit2f22861e4912a0d5311121aa58ec54c1ddec1f89
tree600b372bdde87472043d71716a8cfe638a91373b
parent9a537510dab17e91f9c8b4e2e78c34da97d2d829
tpm: Use correct data types for sizes in tpm_write() and tpm_read()

Use the correct data types for the size parameters in tpm_write() and
tpm_read(). Note that rw_verify_area() makes sure that this bug cannot
be exploited to produce a buffer overrun.

Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com>
Cc: Marcel Selhorst <tpm@selhorst.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tpm/tpm.c